mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
29 lines
406 B
JavaScript
29 lines
406 B
JavaScript
const effects = [];
|
|
|
|
const object = {
|
|
value: 'this',
|
|
get method() {
|
|
effects.push(4);
|
|
return function (arg) {
|
|
effects.push(this.value);
|
|
effects.push(arg);
|
|
};
|
|
}
|
|
};
|
|
|
|
(do {
|
|
effects.push(1);
|
|
object
|
|
})[do {
|
|
effects.push(2);
|
|
"method"
|
|
}](do {
|
|
effects.push(3);
|
|
"arg"
|
|
});
|
|
|
|
(() => {
|
|
effects.push(5);
|
|
return { x: () => effects.push(6) };
|
|
})().x(do { effects.push(7); });
|