* Properly traverse nested class for supers * Add object nested in class cases * Add object nested object cases * Test class properties * Undo changes to lerna.json * Add tests arournd prefix/postfix super increment * tmp * Use sets
22 lines
312 B
JavaScript
22 lines
312 B
JavaScript
"use strict";
|
|
const Hello = {
|
|
toString() {
|
|
return 'hello';
|
|
}
|
|
};
|
|
|
|
const Outer = {
|
|
constructor() {
|
|
const Inner = {
|
|
[super.toString()]() {
|
|
return 'hello';
|
|
},
|
|
};
|
|
|
|
return Inner;
|
|
}
|
|
};
|
|
Object.setPrototypeOf(Outer, Hello);
|
|
|
|
assert.equal(Outer.constructor().hello(), 'hello');
|