Index: test/mjsunit/object-define-property.js |
diff --git a/test/mjsunit/object-define-property.js b/test/mjsunit/object-define-property.js |
index cbb2d211f443523127d89df2c238578cae6b329e..ebdf89961e0f76913df300bdf5ca0cfe812c69c6 100644 |
--- a/test/mjsunit/object-define-property.js |
+++ b/test/mjsunit/object-define-property.js |
@@ -467,35 +467,35 @@ try { |
} |
-// Test runtime calls to DefineOrRedefineDataProperty and |
-// DefineOrRedefineAccessorProperty - make sure we don't |
+// Test runtime calls to DefineDataPropertyUnchecked and |
+// DefineAccessorPropertyUnchecked - make sure we don't |
// crash. |
try { |
- %DefineOrRedefineAccessorProperty(0, 0, 0, 0, 0); |
+ %DefineAccessorPropertyUnchecked(0, 0, 0, 0, 0); |
} catch (e) { |
assertTrue(/illegal access/.test(e)); |
} |
try { |
- %DefineOrRedefineDataProperty(0, 0, 0, 0); |
+ %DefineDataPropertyUnchecked(0, 0, 0, 0); |
} catch (e) { |
assertTrue(/illegal access/.test(e)); |
} |
try { |
- %DefineOrRedefineDataProperty(null, null, null, null); |
+ %DefineDataPropertyUnchecked(null, null, null, null); |
} catch (e) { |
assertTrue(/illegal access/.test(e)); |
} |
try { |
- %DefineOrRedefineAccessorProperty(null, null, null, null, null); |
+ %DefineAccessorPropertyUnchecked(null, null, null, null, null); |
} catch (e) { |
assertTrue(/illegal access/.test(e)); |
} |
try { |
- %DefineOrRedefineDataProperty({}, null, null, null); |
+ %DefineDataPropertyUnchecked({}, null, null, null); |
} catch (e) { |
assertTrue(/illegal access/.test(e)); |
} |
@@ -503,13 +503,13 @@ try { |
// Defining properties null should fail even when we have |
// other allowed values |
try { |
- %DefineOrRedefineAccessorProperty(null, 'foo', func, null, 0); |
+ %DefineAccessorPropertyUnchecked(null, 'foo', func, null, 0); |
} catch (e) { |
assertTrue(/illegal access/.test(e)); |
} |
try { |
- %DefineOrRedefineDataProperty(null, 'foo', 0, 0); |
+ %DefineDataPropertyUnchecked(null, 'foo', 0, 0); |
} catch (e) { |
assertTrue(/illegal access/.test(e)); |
} |