Index: src/v8natives.js |
=================================================================== |
--- src/v8natives.js (revision 8272) |
+++ src/v8natives.js (working copy) |
@@ -629,7 +629,7 @@ |
// Step 3 |
if (IS_UNDEFINED(current) && !extensible) { |
if (should_throw) { |
- throw MakeTypeError("define_disallowed", ["defineProperty"]); |
+ throw MakeTypeError("define_disallowed", [ToString(p)]); |
Lasse Reichstein
2011/06/14 11:17:15
Here 'p' is always a primitive, right?
Rico
2011/06/14 11:25:15
Done and below (yes, we already always called ToSt
|
} else { |
return; |
} |
@@ -659,7 +659,7 @@ |
(desc.hasEnumerable() && |
desc.isEnumerable() != current.isEnumerable())) { |
if (should_throw) { |
- throw MakeTypeError("redefine_disallowed", ["defineProperty"]); |
+ throw MakeTypeError("redefine_disallowed", [ToString(p)]); |
} else { |
return; |
} |
@@ -669,7 +669,7 @@ |
// Step 9a |
if (IsDataDescriptor(current) != IsDataDescriptor(desc)) { |
if (should_throw) { |
- throw MakeTypeError("redefine_disallowed", ["defineProperty"]); |
+ throw MakeTypeError("redefine_disallowed", [ToString(p)]); |
} else { |
return; |
} |
@@ -678,7 +678,7 @@ |
if (IsDataDescriptor(current) && IsDataDescriptor(desc)) { |
if (!current.isWritable() && desc.isWritable()) { |
if (should_throw) { |
- throw MakeTypeError("redefine_disallowed", ["defineProperty"]); |
+ throw MakeTypeError("redefine_disallowed", [ToString(p)]); |
} else { |
return; |
} |
@@ -686,7 +686,7 @@ |
if (!current.isWritable() && desc.hasValue() && |
!SameValue(desc.getValue(), current.getValue())) { |
if (should_throw) { |
- throw MakeTypeError("redefine_disallowed", ["defineProperty"]); |
+ throw MakeTypeError("redefine_disallowed", [ToString(p)]); |
} else { |
return; |
} |
@@ -696,14 +696,14 @@ |
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", [ToString(p)]); |
} else { |
return; |
} |
} |
if (desc.hasGetter() && !SameValue(desc.getGet(),current.getGet())) { |
if (should_throw) { |
- throw MakeTypeError("redefine_disallowed", ["defineProperty"]); |
+ throw MakeTypeError("redefine_disallowed", [ToString(p)]); |
} else { |
return; |
} |
@@ -1016,7 +1016,7 @@ |
// 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); |
} |