Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index f382e263724f03812e00a07b31c7673d5d6d8298..6e73de5e533765feac7cc8309bdd746538e00c0e 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1147,7 +1147,11 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> global_object, |
// --- S y m b o l --- |
Handle<JSFunction> symbol_fun = InstallFunction( |
global, "Symbol", JS_VALUE_TYPE, JSValue::kSize, |
- isolate->initial_object_prototype(), Builtins::kIllegal); |
+ isolate->initial_object_prototype(), Builtins::kSymbolConstructor); |
+ symbol_fun->shared()->set_construct_stub(isolate->builtins()->builtin( |
+ Builtins::kSymbolConstructor_ConstructStub)); |
+ symbol_fun->shared()->set_internal_formal_parameter_count(1); |
+ symbol_fun->shared()->set_length(1); |
native_context()->set_symbol_function(*symbol_fun); |
} |