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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.cpp

Issue 2474693002: [wrapper-tracing] Support for incrementally tracing ScopedPersistent (Closed)
Patch Set: Added bailout for tests when the flag is off Created 4 years, 1 month 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
Index: third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.cpp b/third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.cpp
index b8132fc3f783188466dd0f9c08334835b06d6aa3..a64bb04b4689a15c4a82e2c018df0b57f2808c2d 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.cpp
@@ -19,7 +19,7 @@ namespace blink {
StringSequenceCallbackFunctionLongSequenceArg::StringSequenceCallbackFunctionLongSequenceArg(ScriptState* scriptState, v8::Local<v8::Function> callback)
: m_scriptState(scriptState),
- m_callback(scriptState->isolate(), callback) {
+ m_callback(scriptState->isolate(), this, callback) {
DCHECK(!m_callback.isEmpty());
m_callback.setPhantom();
}
@@ -27,7 +27,7 @@ StringSequenceCallbackFunctionLongSequenceArg::StringSequenceCallbackFunctionLon
DEFINE_TRACE(StringSequenceCallbackFunctionLongSequenceArg) {}
DEFINE_TRACE_WRAPPERS(StringSequenceCallbackFunctionLongSequenceArg) {
- visitor->traceWrappers(&m_callback.cast<v8::Object>());
+ visitor->traceWrappers(m_callback.cast<v8::Value>());
}
bool StringSequenceCallbackFunctionLongSequenceArg::call(ScriptWrappable* scriptWrappable, const Vector<int>& arg, Vector<String>& returnValue) {

Powered by Google App Engine
This is Rietveld 408576698