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

Unified Diff: sky/engine/core/app/AbstractModule.cpp

Issue 872043003: module.exports should default to an empty object. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/bindings/templates/attributes.cpp ('k') | sky/engine/core/app/Module.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/app/AbstractModule.cpp
diff --git a/sky/engine/core/app/AbstractModule.cpp b/sky/engine/core/app/AbstractModule.cpp
index a505f15e3cf5eec738dc45cb35cbbfc7d4447266..fccb59bf2216a456a4b555a5018f6ad3b664d239 100644
--- a/sky/engine/core/app/AbstractModule.cpp
+++ b/sky/engine/core/app/AbstractModule.cpp
@@ -41,7 +41,7 @@ void AbstractModule::OnModuleLoadComplete(ModuleLoader* loader,
Module* module) {
RefPtr<ScriptPromiseResolver> resolver = loaders_.take(loader);
ScriptState::Scope scope(resolver->scriptState());
- resolver->resolve(module->exports().v8Value());
+ resolver->resolve(module->exports(resolver->scriptState()).v8Value());
}
} // namespace blink
« no previous file with comments | « sky/engine/bindings/templates/attributes.cpp ('k') | sky/engine/core/app/Module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698