| 1 |
let _one, _ref, _undefined, _computed, _computed2, _ref2, _ref3, _baz, _ref4; |
| 2 |
const foo = "foo"; |
| 3 |
const bar = () => {}; |
| 4 |
const four = 4; |
| 5 |
_one = one(); |
| 6 |
_ref = 2 * four + seven; |
| 7 |
_undefined = undefined; |
| 8 |
_computed = computed(); |
| 9 |
_computed2 = computed(); |
| 10 |
_ref2 = "test" + one; |
| 11 |
_ref3 = /regex/; |
| 12 |
_baz = baz; |
| 13 |
_ref4 = `template${expression}`; |
| 14 |
class MyClass { |
| 15 |
constructor() { |
| 16 |
this[null] = "null"; |
| 17 |
this[_undefined] = "undefined"; |
| 18 |
this[void 0] = "void 0"; |
| 19 |
this[_ref3] = "regex"; |
| 20 |
this[foo] = "foo"; |
| 21 |
this[bar] = "bar"; |
| 22 |
this[_baz] = "baz"; |
| 23 |
this[`template`] = "template"; |
| 24 |
this[_ref4] = "template-with-expression"; |
| 25 |
} |
| 26 |
get ["whatever"]() {} |
| 27 |
set ["whatever"](value) {} |
| 28 |
get [_computed]() {} |
| 29 |
set [_computed2](value) {} |
| 30 |
[_ref2]() {} |
| 31 |
static [10]() {} |
| 32 |
} |
| 33 |
MyClass[_one] = "test"; |
| 34 |
MyClass[2 * 4 + 7] = "247"; |
| 35 |
MyClass[2 * four + 7] = "247"; |
| 36 |
MyClass[_ref] = "247"; |