Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 51c640902e891c06ad2821c2116eda257e598567..fdbffd1c5bf434fb8c1c1a98f5bef722644ef5fb 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -2210,7 +2210,7 @@ ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
Handle<JSObject> Isolate::GetSymbolRegistry() { |
- if (heap()->symbol_registry()->IsUndefined()) { |
+ if (heap()->symbol_registry()->IsSmi()) { |
Handle<Map> map = factory()->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); |
Handle<JSObject> registry = factory()->NewJSObjectFromMap(map); |
heap()->set_symbol_registry(*registry); |