Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 00d8a88d7342222a04357665c0b4ae9f11c0501b..dd00c8a5507562ad5a644766efb0f65d74944dd9 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -251,8 +251,8 @@ function ObjectHasOwnProperty(V) { |
// ECMA-262 - 15.2.4.6 |
function ObjectIsPrototypeOf(V) { |
- CHECK_OBJECT_COERCIBLE(this, "Object.prototype.isPrototypeOf"); |
if (!IS_SPEC_OBJECT(V)) return false; |
+ CHECK_OBJECT_COERCIBLE(this, "Object.prototype.isPrototypeOf"); |
return %IsInPrototypeChain(this, V); |
} |