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

Unified Diff: Source/bindings/v8/ScriptPromise.cpp

Issue 326853002: Revert of Add an ASSERT about cross-world wrapper leakage into ScriptValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « Source/bindings/v8/ScriptPromise.h ('k') | Source/bindings/v8/ScriptPromiseTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScriptPromise.cpp
diff --git a/Source/bindings/v8/ScriptPromise.cpp b/Source/bindings/v8/ScriptPromise.cpp
index 11865ee4854c9fd76b572354a85ebfa60b06eca2..be125f4d27e156ff83b9540be26d0a8997faea2f 100644
--- a/Source/bindings/v8/ScriptPromise.cpp
+++ b/Source/bindings/v8/ScriptPromise.cpp
@@ -94,9 +94,9 @@
return ScriptPromise(m_scriptState.get(), resultPromise);
}
-ScriptPromise ScriptPromise::cast(ScriptState* scriptState, const ScriptValue& value)
+ScriptPromise ScriptPromise::cast(const ScriptValue& value)
{
- return ScriptPromise::cast(scriptState, value.v8Value());
+ return ScriptPromise::cast(value.scriptState(), value.v8Value());
}
ScriptPromise ScriptPromise::cast(ScriptState* scriptState, v8::Handle<v8::Value> value)
@@ -112,9 +112,9 @@
return promise;
}
-ScriptPromise ScriptPromise::reject(ScriptState* scriptState, const ScriptValue& value)
+ScriptPromise ScriptPromise::reject(const ScriptValue& value)
{
- return ScriptPromise::reject(scriptState, value.v8Value());
+ return ScriptPromise::reject(value.scriptState(), value.v8Value());
}
ScriptPromise ScriptPromise::reject(ScriptState* scriptState, v8::Handle<v8::Value> value)
« no previous file with comments | « Source/bindings/v8/ScriptPromise.h ('k') | Source/bindings/v8/ScriptPromiseTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698