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

Unified Diff: sky/engine/bindings/templates/attributes.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/core/v8/ScriptValue.h ('k') | sky/engine/core/app/AbstractModule.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings/templates/attributes.cpp
diff --git a/sky/engine/bindings/templates/attributes.cpp b/sky/engine/bindings/templates/attributes.cpp
index 1d21116419a61c6b093625f5a6ed7ba028e94462..80e31b88f48cf1cdb5c888d5984a20c54a7bc580 100644
--- a/sky/engine/bindings/templates/attributes.cpp
+++ b/sky/engine/bindings/templates/attributes.cpp
@@ -249,6 +249,9 @@ v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
attribute.is_setter_call_with_execution_context %}
ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
{% endif %}
+ {% if attribute.is_call_with_script_state %}
+ ScriptState* scriptState = ScriptState::current(info.GetIsolate());
+ {% endif %}
{# Set #}
{{attribute.cpp_setter}};
{# Post-set #}
« no previous file with comments | « sky/engine/bindings/core/v8/ScriptValue.h ('k') | sky/engine/core/app/AbstractModule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698