Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: src/bootstrapper.cc

Issue 1137143003: Fix test-heap/BootstrapperExports on no-snap builds (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index f0278ca666724daf7faf1f0a10384e2a1e4f9d1e..f2363b1372dae0b34fd3f7029692ff75a049194f 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698