Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 4c300622a7314b4308fdba54e3b83a3fd6b25074..7f763a1b1bd95861f2d0505a7c2ed606a6d3d31c 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -629,7 +629,7 @@ function DefineOwnProperty(obj, p, desc, should_throw) { |
// Step 3 |
if (IS_UNDEFINED(current) && !extensible) { |
if (should_throw) { |
- throw MakeTypeError("define_disallowed", ["defineProperty"]); |
+ throw MakeTypeError("define_disallowed", [p]); |
} else { |
return; |
} |
@@ -659,7 +659,7 @@ function DefineOwnProperty(obj, p, desc, should_throw) { |
(desc.hasEnumerable() && |
desc.isEnumerable() != current.isEnumerable())) { |
if (should_throw) { |
- throw MakeTypeError("redefine_disallowed", ["defineProperty"]); |
+ throw MakeTypeError("redefine_disallowed", [p]); |
} else { |
return; |
} |
@@ -669,7 +669,7 @@ function DefineOwnProperty(obj, p, desc, should_throw) { |
// Step 9a |
if (IsDataDescriptor(current) != IsDataDescriptor(desc)) { |
if (should_throw) { |
- throw MakeTypeError("redefine_disallowed", ["defineProperty"]); |
+ throw MakeTypeError("redefine_disallowed", [p]); |
} else { |
return; |
} |
@@ -678,7 +678,7 @@ function DefineOwnProperty(obj, p, desc, should_throw) { |
if (IsDataDescriptor(current) && IsDataDescriptor(desc)) { |
if (!current.isWritable() && desc.isWritable()) { |
if (should_throw) { |
- throw MakeTypeError("redefine_disallowed", ["defineProperty"]); |
+ throw MakeTypeError("redefine_disallowed", [p]); |
} else { |
return; |
} |
@@ -686,7 +686,7 @@ function DefineOwnProperty(obj, p, desc, should_throw) { |
if (!current.isWritable() && desc.hasValue() && |
!SameValue(desc.getValue(), current.getValue())) { |
if (should_throw) { |
- throw MakeTypeError("redefine_disallowed", ["defineProperty"]); |
+ throw MakeTypeError("redefine_disallowed", [p]); |
} else { |
return; |
} |
@@ -696,14 +696,14 @@ function DefineOwnProperty(obj, p, desc, should_throw) { |
if (IsAccessorDescriptor(desc) && IsAccessorDescriptor(current)) { |
if (desc.hasSetter() && !SameValue(desc.getSet(), current.getSet())) { |
if (should_throw) { |
- throw MakeTypeError("redefine_disallowed", ["defineProperty"]); |
+ throw MakeTypeError("redefine_disallowed", [p]); |
} else { |
return; |
} |
} |
if (desc.hasGetter() && !SameValue(desc.getGet(),current.getGet())) { |
if (should_throw) { |
- throw MakeTypeError("redefine_disallowed", ["defineProperty"]); |
+ throw MakeTypeError("redefine_disallowed", [p]); |
} else { |
return; |
} |
@@ -1016,7 +1016,7 @@ function ObjectIsFrozen(obj) { |
// ES5 section 15.2.3.13 |
function ObjectIsExtensible(obj) { |
if (!IS_SPEC_OBJECT(obj)) { |
- throw MakeTypeError("obj_ctor_property_non_object", ["preventExtension"]); |
+ throw MakeTypeError("obj_ctor_property_non_object", ["isExtensible"]); |
} |
return %IsExtensible(obj); |
} |