Files

18 lines
970 B
Diff

--- old.asyncMethodWithSuper_es6.js
+++ new.asyncMethodWithSuper_es6.js
@@= skipped -374, +374 lines =@@
}
element_access_only_read_only_in_generator() {
const _superIndex = name => super[name];
- const _super = Object.create(null, {});
return __asyncGenerator(this, arguments, function* element_access_only_read_only_in_generator_1() {
// call with element access
_superIndex("x").call(this);
@@= skipped -17, +16 lines =@@
const cache = Object.create(null);
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
})(name => super[name], (name, value) => super[name] = value);
- const _super = Object.create(null, {});
return __asyncGenerator(this, arguments, function* element_access_only_write_only_in_generator_1() {
const f = () => { };
// element access (assign)