Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 7c67539d7b6172ad9120676481c6292f3dfd5923..e72581a722911aa85b45adc82ac6bb90f3865025 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -80,6 +80,8 @@ MaybeObject* Object::ToObject(Context* native_context) { |
return CreateJSValue(native_context->boolean_function(), this); |
} else if (IsString()) { |
return CreateJSValue(native_context->string_function(), this); |
+ } else if (IsSymbol()) { |
+ return CreateJSValue(native_context->symbol_function(), this); |
} |
ASSERT(IsJSObject()); |
return this; |