Index: test/mjsunit/regress/regress-1530.js |
diff --git a/test/mjsunit/regress/regress-1530.js b/test/mjsunit/regress/regress-1530.js |
index 3d4017782032922689862551a7eb819f66fc4521..db2114450e4133371bc9045e0c409f5154333d01 100644 |
--- a/test/mjsunit/regress/regress-1530.js |
+++ b/test/mjsunit/regress/regress-1530.js |
@@ -62,9 +62,8 @@ assertSame(new f().foo, 'other'); |
assertSame(Object.getPrototypeOf(new f()), z); |
assertSame(Object.getOwnPropertyDescriptor(f, 'prototype').value, z); |
-// Verify that non-configurability of other properties is respected, but |
-// non-writability is ignored by Object.defineProperty(). |
-assertDoesNotThrow("Object.defineProperty(f, 'name', { value: {} })"); |
+// Verify that non-writability of other properties is respected. |
+assertThrows("Object.defineProperty(f, 'name', { value: {} })"); |
assertThrows("Object.defineProperty(f, 'length', { value: {} })"); |
assertThrows("Object.defineProperty(f, 'caller', { value: {} })"); |
assertThrows("Object.defineProperty(f, 'arguments', { value: {} })"); |