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( |