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

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

Issue 295163005: Remove ScriptState::current() from IDBRequest (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/bindings/v8/V8GCController.cpp
diff --git a/Source/bindings/v8/V8GCController.cpp b/Source/bindings/v8/V8GCController.cpp
index 5af7b234619775b879b93a29707a24e302f1a738..bd25a2a23f8156653fbae09ee523c44b63f8e7b7 100644
--- a/Source/bindings/v8/V8GCController.cpp
+++ b/Source/bindings/v8/V8GCController.cpp
@@ -413,7 +413,9 @@ void V8GCController::majorGCEpilogue(v8::Isolate* isolate)
void V8GCController::collectGarbage(v8::Isolate* isolate)
{
- V8ExecutionScope scope(isolate);
+ v8::HandleScope handleScope(isolate);
+ RefPtr<ScriptState> scriptState = ScriptState::create(v8::Context::New(isolate), DOMWrapperWorld::create());
+ ScriptState::Scope scope(scriptState.get());
V8ScriptRunner::compileAndRunInternalScript(v8String(isolate, "if (gc) gc();"), isolate);
}

Powered by Google App Engine
This is Rietveld 408576698