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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseTest.cpp

Issue 2144413004: Removes abuse of createClosure() from ScriptPromiseTest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed a review comment. Created 4 years, 5 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: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseTest.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseTest.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseTest.cpp
index 7146ae52bb7f5875f4343a7e35da23b3a4499a0c..21e908eb88a924652607521598edfef6fbc6fb3b 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseTest.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseTest.cpp
@@ -46,8 +46,6 @@ namespace {
typedef ScriptPromise::InternalResolver Resolver;
-void callback(const v8::FunctionCallbackInfo<v8::Value>& info) { }
-
class Function : public ScriptFunction {
public:
static v8::Local<v8::Function> createFunction(ScriptState* scriptState, ScriptValue* output)
@@ -83,9 +81,6 @@ public:
~TryCatchScope()
{
- // FIXME: We put this statement here to clear an exception from the isolate.
- createClosure(callback, v8::Undefined(m_isolate), m_isolate);
-
// Execute all pending microtasks
v8::MicrotasksScope::PerformCheckpoint(m_isolate);
}

Powered by Google App Engine
This is Rietveld 408576698