| Index: src/v8natives.js
|
| diff --git a/src/v8natives.js b/src/v8natives.js
|
| index 3c669403132bc99f743e16f7e8d3080613a8e432..df663c025e927a79222e031ab8eee14d004f67a8 100644
|
| --- a/src/v8natives.js
|
| +++ b/src/v8natives.js
|
| @@ -397,8 +397,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() };
|
| }
|
| @@ -1397,12 +1396,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;
|
| @@ -1422,8 +1415,6 @@ function SetUpObject() {
|
|
|
| %SetNativeFlag($Object);
|
| %SetCode($Object, ObjectConstructor);
|
| - %FunctionSetName(ObjectPoisonProto, "__proto__");
|
| - %FunctionRemovePrototype(ObjectPoisonProto);
|
| %SetExpectedNumberOfProperties($Object, 4);
|
|
|
| %SetProperty($Object.prototype, "constructor", $Object, DONT_ENUM);
|
|
|