Index: test/mjsunit/regress/regress-1530.js |
diff --git a/test/mjsunit/regress/regress-1530.js b/test/mjsunit/regress/regress-1530.js |
index 20d1f265c092b6b02bac7e9cd7d9608ffb8f8364..b0daa2c94e53ecbd1d2d84c0da5ca0030398d070 100644 |
--- a/test/mjsunit/regress/regress-1530.js |
+++ b/test/mjsunit/regress/regress-1530.js |
@@ -80,8 +80,9 @@ assertFalse(Object.getOwnPropertyDescriptor(f, 'prototype').writable); |
assertThrows("'use strict'; f.prototype = {}"); |
assertThrows("Object.defineProperty(f, 'prototype', { value: {} })"); |
-// Verify that non-writability of other properties is respected. |
-assertThrows("Object.defineProperty(f, 'name', { value: {} })"); |
+// Verify that non-configurability of other properties is respected, but |
+// non-writability is ignored by Object.defineProperty(). |
+Object.defineProperty(f, 'name', { value: {} }); |
assertThrows("Object.defineProperty(f, 'length', { value: {} })"); |
assertThrows("Object.defineProperty(f, 'caller', { value: {} })"); |
assertThrows("Object.defineProperty(f, 'arguments', { value: {} })"); |