Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 61db2b0b1b1696e9c1faacf138e27f374aad2364..effae407300aea2f2b46c8a504c237bd0d4b9dc6 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -969,7 +969,7 @@ bool ToBooleanStub::Types::UpdateStatus(Handle<Object> object) { |
} else if (object->IsSmi()) { |
Add(SMI); |
return Smi::cast(*object)->value() != 0; |
- } else if (object->IsSpecObject()) { |
+ } else if (object->IsJSReceiver()) { |
Add(SPEC_OBJECT); |
return !object->IsUndetectableObject(); |
} else if (object->IsString()) { |