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 #} |