| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 78a80ca3df32ca09a028ccfd76462347df076094..41d9e7b178104200ccf79da9415aeede4976de0a 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -2755,6 +2755,23 @@ bool Genesis::InstallNatives(GlobalContextType context_type) {
|
| native_context()->set_string_function_prototype_map(
|
| HeapObject::cast(string_function->initial_map()->prototype())->map());
|
|
|
| + // Install Global.encodeURI.
|
| + {
|
| + Handle<JSFunction> encode_uri = SimpleInstallFunction(
|
| + handle(native_context()->global_object()), "encodeURI",
|
| + Builtins::kGlobalEncodeURI, 1, false);
|
| + native_context()->set_global_encode_uri_fun(*encode_uri);
|
| + }
|
| +
|
| + // Install Global.encodeURIComponent.
|
| + {
|
| + Handle<JSFunction> encode_uri_component = SimpleInstallFunction(
|
| + handle(native_context()->global_object()), "encodeURIComponent",
|
| + Builtins::kGlobalEncodeURIComponent, 1, false);
|
| + native_context()->set_global_encode_uri_component_fun(
|
| + *encode_uri_component);
|
| + }
|
| +
|
| // Install Global.eval.
|
| {
|
| Handle<JSFunction> eval = SimpleInstallFunction(
|
|
|