Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 256343a89e9a8ec302242b40d37764cb62696c87..c850a4bcbb65fbd69cc3de5c296b36eacda70441 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -1394,7 +1394,7 @@ function ObjectGetProto() { |
function ObjectSetProto(proto) { |
CHECK_OBJECT_COERCIBLE(this, "Object.prototype.__proto__"); |
- if (IS_SPEC_OBJECT(proto) || IS_NULL(proto) && IS_SPEC_OBJECT(this)) { |
+ if ((IS_SPEC_OBJECT(proto) || IS_NULL(proto)) && IS_SPEC_OBJECT(this)) { |
%SetPrototype(this, proto); |
} |
} |