Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index b0b66e760b32118be5876b223a3292844a0ae439..9208ed3a4abc5e9512a8c4b168f2c88ded075b16 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -403,8 +403,7 @@ function FromPropertyDescriptor(desc) { |
} |
// Must be an AccessorDescriptor then. We never return a generic descriptor. |
return { get: desc.getGet(), |
- set: desc.getSet() === ObjectSetProto ? ObjectPoisonProto |
- : desc.getSet(), |
+ set: desc.getSet(), |
enumerable: desc.isEnumerable(), |
configurable: desc.isConfigurable() }; |
} |
@@ -1403,12 +1402,6 @@ function ObjectSetProto(obj) { |
} |
-// Harmony __proto__ poison pill. |
-function ObjectPoisonProto(obj) { |
- throw MakeTypeError("proto_poison_pill", []); |
-} |
- |
- |
function ObjectConstructor(x) { |
if (%_IsConstructCall()) { |
if (x == null) return this; |
@@ -1428,8 +1421,6 @@ function SetUpObject() { |
%SetNativeFlag($Object); |
%SetCode($Object, ObjectConstructor); |
- %FunctionSetName(ObjectPoisonProto, "__proto__"); |
- %FunctionRemovePrototype(ObjectPoisonProto); |
%SetExpectedNumberOfProperties($Object, 4); |
%SetProperty($Object.prototype, "constructor", $Object, DONT_ENUM); |