Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 778607633382183a66cf2661303e3399513b04f0..7d8b78a6b2f4ee249510421725e05328a8de8159 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -1809,11 +1809,11 @@ utils.Export(function(to) { |
to.ToNameArray = ToNameArray; |
}); |
-utils.ExportToRuntime(function(to) { |
- to["global_eval_fun"] = GlobalEval; |
- to["object_define_own_property"] = DefineOwnPropertyFromAPI; |
- to["object_get_own_property_descriptor"] = ObjectGetOwnPropertyDescriptor; |
- to["to_complete_property_descriptor"] = ToCompletePropertyDescriptor; |
-}); |
+%InstallToContext([ |
+ "global_eval_fun", GlobalEval, |
+ "object_define_own_property", DefineOwnPropertyFromAPI, |
+ "object_get_own_property_descriptor", ObjectGetOwnPropertyDescriptor, |
+ "to_complete_property_descriptor", ToCompletePropertyDescriptor, |
+]); |
}) |