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

Unified Diff: Source/core/testing/Internals.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/core/inspector/JavaScriptCallFrame.cpp ('k') | Source/modules/serviceworkers/FetchEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index c8023eb65929ceef1144ec414d2750135a21f6a7..d258aca14acae4e52a9a8835f2e90c400e95e5a6 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -2286,9 +2286,10 @@
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(ScriptState::current(isolate()), v8::Integer::New(isolate(), intValue + 1));
+ ScriptValue result = ScriptValue(value.scriptState(), v8::Integer::New(isolate, intValue + 1));
return result;
}
};
« no previous file with comments | « Source/core/inspector/JavaScriptCallFrame.cpp ('k') | Source/modules/serviceworkers/FetchEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698