Index: test/mjsunit/es6/super.js |
diff --git a/test/mjsunit/es6/super.js b/test/mjsunit/es6/super.js |
index 355cbdd7d651bd31f1ed62174f1332f459d6c217..4301f69e43c67ad12521236cd46afdb021dca6b5 100644 |
--- a/test/mjsunit/es6/super.js |
+++ b/test/mjsunit/es6/super.js |
@@ -939,12 +939,8 @@ |
mSloppy() { |
assertEquals(42, this.ownReadOnly); |
super.ownReadOnly = 55; |
- assertEquals(55, this.ownReadOnly); |
- var descr = Object.getOwnPropertyDescriptor(this, 'ownReadOnly'); |
- assertEquals(55, descr.value); |
- assertTrue(descr.configurable); |
- assertFalse(descr.enumerable); |
- assertFalse(descr.writable); |
+ assertSame(undefined, super.ownReadOnly); |
+ assertEquals(42, this.ownReadOnly); |
assertFalse(Base.prototype.hasOwnProperty('ownReadOnly')); |
assertEquals(15, this.ownReadonlyAccessor); |
@@ -962,13 +958,9 @@ |
mStrict() { |
'use strict'; |
assertEquals(42, this.ownReadOnly); |
- super.ownReadOnly = 55; |
- assertEquals(55, this.ownReadOnly); |
- var descr = Object.getOwnPropertyDescriptor(this, 'ownReadOnly'); |
- assertEquals(55, descr.value); |
- assertTrue(descr.configurable); |
- assertFalse(descr.enumerable); |
- assertFalse(descr.writable); |
+ assertThrows(() => {super.ownReadOnly = 55}, TypeError); |
+ assertSame(undefined, super.ownReadOnly); |
+ assertEquals(42, this.ownReadOnly); |
assertFalse(Base.prototype.hasOwnProperty('ownReadOnly')); |
assertEquals(15, this.ownReadonlyAccessor); |
@@ -1167,12 +1159,8 @@ function TestKeyedSetterCreatingOwnPropertiesReconfigurable(ownReadOnly, |
mSloppy() { |
assertEquals(42, this[ownReadOnly]); |
super[ownReadOnly] = 55; |
- assertEquals(55, this[ownReadOnly]); |
- var descr = Object.getOwnPropertyDescriptor(this, ownReadOnly); |
- assertEquals(55, descr.value); |
- assertTrue(descr.configurable); |
- assertFalse(descr.enumerable); |
- assertFalse(descr.writable); |
+ assertSame(undefined, super[ownReadOnly]); |
+ assertEquals(42, this[ownReadOnly]); |
assertFalse(Base.prototype.hasOwnProperty(ownReadOnly)); |
assertEquals(15, this[ownReadonlyAccessor]); |
@@ -1190,13 +1178,9 @@ function TestKeyedSetterCreatingOwnPropertiesReconfigurable(ownReadOnly, |
mStrict() { |
'use strict'; |
assertEquals(42, this[ownReadOnly]); |
- super[ownReadOnly] = 55; |
- assertEquals(55, this[ownReadOnly]); |
- var descr = Object.getOwnPropertyDescriptor(this, ownReadOnly); |
- assertEquals(55, descr.value); |
- assertTrue(descr.configurable); |
- assertFalse(descr.enumerable); |
- assertFalse(descr.writable); |
+ assertThrows(() => {super[ownReadOnly] = 55}, TypeError); |
+ assertSame(undefined, super[ownReadOnly]); |
+ assertEquals(42, this[ownReadOnly]); |
assertFalse(Base.prototype.hasOwnProperty(ownReadOnly)); |
assertEquals(15, this[ownReadonlyAccessor]); |