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

Unified Diff: Source/core/testing/Internals.cpp

Issue 314953005: 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
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 20314b05b3e8eea11034d9fa16ded49ebd959471..521d326a98a640068d1185d773681051d4b11cdc 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2286,10 +2286,9 @@ private:
virtual ScriptValue call(ScriptValue value) OVERRIDE
{
v8::Local<v8::Value> v8Value = value.v8Value();
- v8::Isolate* isolate = value.isolate();
ASSERT(v8Value->IsNumber());
int intValue = v8Value.As<v8::Integer>()->Value();
- ScriptValue result = ScriptValue(value.scriptState(), v8::Integer::New(isolate, intValue + 1));
+ ScriptValue result = ScriptValue(ScriptState::current(isolate()), v8::Integer::New(isolate(), intValue + 1));
return result;
}
};

Powered by Google App Engine
This is Rietveld 408576698