Fix test-heap/BootstrapperExports on no-snap builds
authoryangguo <yangguo@chromium.org>
Tue, 12 May 2015 14:28:40 +0000 (07:28 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 12 May 2015 14:28:35 +0000 (14:28 +0000)
NOTRY=true
NOTREECHECKS=true
TBR=machenbach@chromium.org

Review URL: https://codereview.chromium.org/1137143003

Cr-Commit-Position: refs/heads/master@{#28368}

src/bootstrapper.cc

index f0278ca666724daf7faf1f0a10384e2a1e4f9d1e..f2363b1372dae0b34fd3f7029692ff75a049194f 100644 (file)
@@ -1923,6 +1923,11 @@ bool Genesis::InstallNatives() {
                                 "container to export to experimental natives");
   native_context()->set_builtin_exports_object(*builtin_exports);
 
+  if (FLAG_expose_natives_as != NULL) {
+    Handle<String> shared_key = factory()->NewStringFromAsciiChecked("shared");
+    JSObject::AddProperty(builtins, shared_key, shared, NONE);
+  }
+
   {  // -- S c r i p t
     // Builtin functions for Script.
     Handle<JSFunction> script_fun = InstallFunction(