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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h

Issue 2200303003: Remove v8CallOrCrash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 4 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/V8BindingMacros.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h b/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h
index 6f84252260e02cd6de62abffa92ec447a3b66562..22c6332449fd305b41286db0a845eb81bf17215a 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8BindingMacros.h
@@ -91,18 +91,6 @@ inline bool v8Call(v8::MaybeLocal<T> maybeLocal, v8::Local<T>& outVariable, v8::
return success;
}
-template <typename T>
-inline T v8CallOrCrash(v8::Maybe<T> maybe)
-{
- return maybe.FromJust();
-}
-
-template <typename T>
-inline v8::Local<T> v8CallOrCrash(v8::MaybeLocal<T> maybeLocal)
-{
- return maybeLocal.ToLocalChecked();
-}
-
#define V8_CALL(outVariable, handle, methodCall, failureExpression) \
do { \
if (handle.IsEmpty() || !v8Call(handle->methodCall, outVariable)) { \

Powered by Google App Engine
This is Rietveld 408576698