Index: sky/engine/bindings/core/v8/ScriptValue.h |
diff --git a/sky/engine/bindings/core/v8/ScriptValue.h b/sky/engine/bindings/core/v8/ScriptValue.h |
index 9102432ada395b4082bbe5861e5c49b9a791802a..41996d4d753c8c24daff0eb1a236a6b84908efa6 100644 |
--- a/sky/engine/bindings/core/v8/ScriptValue.h |
+++ b/sky/engine/bindings/core/v8/ScriptValue.h |
@@ -60,6 +60,11 @@ public: |
ASSERT(isEmpty() || m_scriptState); |
} |
+ static ScriptValue createEmptyObject(ScriptState* scriptState) |
+ { |
+ return ScriptValue(scriptState, v8::Object::New(scriptState->isolate())); |
+ } |
+ |
ScriptState* scriptState() const |
{ |
return m_scriptState.get(); |