Index: src/object-observe.js |
diff --git a/src/object-observe.js b/src/object-observe.js |
index 243e093244eb3378a5d4ca586b2b4c0597eeffdb..0f1f6d37fbadab8acd1b12968fed89e70a93f62c 100644 |
--- a/src/object-observe.js |
+++ b/src/object-observe.js |
@@ -703,15 +703,14 @@ $observeEnqueueSpliceRecord = EnqueueSpliceRecord; |
$observeBeginPerformSplice = BeginPerformSplice; |
$observeEndPerformSplice = EndPerformSplice; |
-utils.ExportToRuntime(function(to) { |
- to["native_object_get_notifier"] = NativeObjectGetNotifier; |
- to["native_object_notifier_perform_change"] = |
- NativeObjectNotifierPerformChange; |
- to["native_object_observe"] = NativeObjectObserve; |
- to["observers_begin_perform_splice"] = BeginPerformSplice; |
- to["observers_end_perform_splice"] = EndPerformSplice; |
- to["observers_enqueue_splice"] = EnqueueSpliceRecord; |
- to["observers_notify_change"] = NotifyChange; |
-}); |
+%InstallToContext([ |
+ "native_object_get_notifier", NativeObjectGetNotifier, |
+ "native_object_notifier_perform_change", NativeObjectNotifierPerformChange, |
+ "native_object_observe", NativeObjectObserve, |
+ "observers_begin_perform_splice", BeginPerformSplice, |
+ "observers_end_perform_splice", EndPerformSplice, |
+ "observers_enqueue_splice", EnqueueSpliceRecord, |
+ "observers_notify_change", NotifyChange, |
+]); |
}) |