Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 2f2216b13e80a9851ca78f38e2624b24e43e4b94..751bcd0b273e4c1f17bbaa14480cb4b0fa057131 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -576,7 +576,7 @@ Handle<JSFunction> Genesis::CreateEmptyFunction(Isolate* isolate) { |
// --- E m p t y --- |
Handle<String> source = factory->NewStringFromStaticChars("() {}"); |
Handle<Script> script = factory->NewScript(source); |
- script->set_type(Smi::FromInt(Script::TYPE_NATIVE)); |
+ script->set_type(Script::TYPE_NATIVE); |
empty_function->shared()->set_start_position(0); |
empty_function->shared()->set_end_position(source->length()); |
empty_function->shared()->DontAdaptArguments(); |