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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/LongCallbackFunction.h

Issue 2617653002: bindings: Don't throw a TypeError when 'null' is passed to nullable callback function (Closed)
Patch Set: Created 3 years, 11 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/tests/results/core/LongCallbackFunction.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/LongCallbackFunction.h b/third_party/WebKit/Source/bindings/tests/results/core/LongCallbackFunction.h
index 35a299b4474905a8d88957807de4a49193036326..d1dd5310348c8c67ed01e263415a75100eafb774 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/LongCallbackFunction.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/LongCallbackFunction.h
@@ -25,9 +25,7 @@ class ScriptState;
class CORE_EXPORT LongCallbackFunction final : public GarbageCollectedFinalized<LongCallbackFunction>, public TraceWrapperBase {
public:
- static LongCallbackFunction* create(ScriptState* scriptState, v8::Local<v8::Function> callback) {
- return new LongCallbackFunction(scriptState, callback);
- }
+ static LongCallbackFunction* create(ScriptState* scriptState, v8::Local<v8::Value> callback);
~LongCallbackFunction() = default;

Powered by Google App Engine
This is Rietveld 408576698