Files

37 lines
884 B
JavaScript

let _one, _ref, _undefined, _computed, _computed2, _ref2, _ref3, _baz, _ref4;
const foo = "foo";
const bar = () => {};
const four = 4;
_one = one();
_ref = 2 * four + seven;
_undefined = undefined;
_computed = computed();
_computed2 = computed();
_ref2 = "test" + one;
_ref3 = /regex/;
_baz = baz;
_ref4 = `template${expression}`;
class MyClass {
constructor() {
this[null] = "null";
this[_undefined] = "undefined";
this[void 0] = "void 0";
this[_ref3] = "regex";
this[foo] = "foo";
this[bar] = "bar";
this[_baz] = "baz";
this[`template`] = "template";
this[_ref4] = "template-with-expression";
}
get ["whatever"]() {}
set ["whatever"](value) {}
get [_computed]() {}
set [_computed2](value) {}
[_ref2]() {}
static [10]() {}
}
MyClass[_one] = "test";
MyClass[2 * 4 + 7] = "247";
MyClass[2 * four + 7] = "247";
MyClass[_ref] = "247";