Justin Ridgewell ec882be44d
Uncomment super increment expression set tests (#7721)
This was failing because of the bugs fixed by #7687.
2018-04-12 13:24:07 -04:00

15 lines
222 B
JavaScript

var Base = {
test: '1',
};
var obj = {
bar() {
return ++super.test;
}
};
Object.setPrototypeOf(obj, Base);
assert.strictEqual(obj.bar(), 2);
assert.strictEqual(Base.test, '1');
assert.strictEqual(obj.test, 2);