* 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
24 lines
418 B
JavaScript
24 lines
418 B
JavaScript
"use strict";
|
|
|
|
var _obj;
|
|
|
|
const Hello = {
|
|
toString: function () {
|
|
return 'hello';
|
|
}
|
|
};
|
|
const Outer = _obj = {
|
|
constructor: function () {
|
|
class Inner {
|
|
[babelHelpers.get(babelHelpers.getPrototypeOf(_obj), "toString", this).call(this)]() {
|
|
return 'hello';
|
|
}
|
|
|
|
}
|
|
|
|
return new Inner();
|
|
}
|
|
};
|
|
Object.setPrototypeOf(Outer, Hello);
|
|
assert.equal(Outer.constructor().hello(), 'hello');
|