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

Unified Diff: Source/bindings/core/v8/custom/V8ElementCustom.cpp

Issue 460923002: Decouple arity errors creation from throwing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: Source/bindings/core/v8/custom/V8ElementCustom.cpp
diff --git a/Source/bindings/core/v8/custom/V8ElementCustom.cpp b/Source/bindings/core/v8/custom/V8ElementCustom.cpp
index 4b7ad561ec59e6cbcfb5a8b3ad5376f37c3259aa..1d1b7aacb24b6fbbc06d8c6eec90932b44278157 100644
--- a/Source/bindings/core/v8/custom/V8ElementCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8ElementCustom.cpp
@@ -225,7 +225,8 @@ void V8Element::animateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& i
}
break;
default:
- throwArityTypeError(exceptionState, "[1]", info.Length());
+ setArityTypeError(exceptionState, "[1]", info.Length());
+ exceptionState.throwIfNeeded();
return;
break;
}

Powered by Google App Engine
This is Rietveld 408576698