Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index 7908c6295ce082e5412f16f19d1a57ed2c9ff330..59be2b0f271b7be3379ed9d9d3378af76d4440d2 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -928,5 +928,23 @@ RUNTIME_FUNCTION(Runtime_CreateDataProperty) { |
return *value; |
} |
+RUNTIME_FUNCTION(Runtime_LoadModuleExport) { |
+ HandleScope scope(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_HANDLE_CHECKED(String, name, 0); |
+ Handle<JSModule> module(isolate->context()->module()); |
+ return *JSModule::LoadExport(module, name); |
+} |
+ |
+RUNTIME_FUNCTION(Runtime_StoreModuleExport) { |
+ HandleScope scope(isolate); |
+ DCHECK(args.length() == 2); |
+ CONVERT_ARG_HANDLE_CHECKED(String, name, 0); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, value, 1); |
+ Handle<JSModule> module(isolate->context()->module()); |
+ JSModule::StoreExport(module, name, value); |
+ return isolate->heap()->undefined_value(); |
+} |
+ |
} // namespace internal |
} // namespace v8 |