Index: src/code-stub-assembler.cc |
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc |
index cdd36b30d1e86ea2a200ec6856bcb9c94920040e..4f2d5ad8aea1e0dfed633f7b143bc036dd3e0f19 100644 |
--- a/src/code-stub-assembler.cc |
+++ b/src/code-stub-assembler.cc |
@@ -1956,8 +1956,8 @@ Node* CodeStubAssembler::OrdinaryHasInstance(Node* context, Node* callable, |
// Check the current {object} prototype. |
Node* object_prototype = LoadMapPrototype(object_map); |
- GotoIf(WordEqual(object_prototype, callable_prototype), &return_true); |
GotoIf(WordEqual(object_prototype, NullConstant()), &return_false); |
+ GotoIf(WordEqual(object_prototype, callable_prototype), &return_true); |
// Continue with the prototype. |
var_object_map.Bind(LoadMap(object_prototype)); |