Chromium Code Reviews| Index: src/objects.cc |
| diff --git a/src/objects.cc b/src/objects.cc |
| index cf21e802ebc14b32afd64beb0a891939bc213ea5..16754ace205d04c68b42085991dd3ef26bf904f7 100644 |
| --- a/src/objects.cc |
| +++ b/src/objects.cc |
| @@ -81,6 +81,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; |