Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index bf96c8cfc9b00068218fc332cc55e5c496892e06..762c4f9962716b477224c59e76418d7e3db7132f 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -499,7 +499,8 @@ Handle<JSFunction> Genesis::CreateEmptyFunction(Isolate* isolate) { |
Builtins::kEmptyFunction)); |
empty_function->set_code(*code); |
empty_function->shared()->set_code(*code); |
- Handle<String> source = factory->NewStringFromAscii(CStrVector("() {}")); |
+ Handle<String> source = |
+ factory->NewStringFromOneByte(STATIC_ASCII_VECTOR("() {}")); |
Handle<Script> script = factory->NewScript(source); |
script->set_type(Smi::FromInt(Script::TYPE_NATIVE)); |
empty_function->shared()->set_script(*script); |