Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 655b808f1be51910bf1e482c5d1cc17ffcc935b6..f950c595b9a3ff32c506a9fb627050f49fcd85ce 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -1104,7 +1104,7 @@ BUILTIN(StrictModePoisonPill) { |
static inline Object* FindHidden(Heap* heap, |
Object* object, |
FunctionTemplateInfo* type) { |
- if (object->IsInstanceOf(type)) return object; |
+ if (type->IsTemplateFor(object)) return object; |
Object* proto = object->GetPrototype(heap->isolate()); |
if (proto->IsJSObject() && |
JSObject::cast(proto)->map()->is_hidden_prototype()) { |