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

Unified Diff: src/api.cc

Issue 2361593002: [modules] Do path resolution relative to each module file in d8 (Closed)
Patch Set: Review comments Created 4 years, 3 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 | « include/v8.h ('k') | src/d8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 1407b2792bc899d3615d80a6f4175e6bdddb25a4..0bebcfa2d9e5ca6da2f4feb7e26eec2153209d6f 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -1915,6 +1915,16 @@ Local<String> Module::GetModuleRequest(int i) const {
return ToApiHandle<String>(i::handle(module_requests->get(i), isolate));
}
+void Module::SetEmbedderData(Local<Value> data) {
+ Utils::OpenHandle(this)->set_embedder_data(*Utils::OpenHandle(*data));
+}
+
+Local<Value> Module::GetEmbedderData() const {
+ auto self = Utils::OpenHandle(this);
+ return ToApiHandle<Value>(
+ i::handle(self->embedder_data(), self->GetIsolate()));
+}
+
bool Module::Instantiate(Local<Context> v8_context,
Module::ResolveCallback callback,
Local<Value> callback_data) {
« no previous file with comments | « include/v8.h ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698