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

Unified Diff: Source/bindings/core/v8/V8Binding.cpp

Issue 946293003: [bindings] Assert toDoubleSlow on v8::Value being a number. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8Binding.cpp
diff --git a/Source/bindings/core/v8/V8Binding.cpp b/Source/bindings/core/v8/V8Binding.cpp
index fd48a502ada3ea0db78f4fb100a94108dd3550de..60b424867a3cf167d4fac76995dc59441b8a7bc9 100644
--- a/Source/bindings/core/v8/V8Binding.cpp
+++ b/Source/bindings/core/v8/V8Binding.cpp
@@ -533,6 +533,7 @@ float toRestrictedFloat(v8::Handle<v8::Value> value, ExceptionState& exceptionSt
double toDoubleSlow(v8::Handle<v8::Value> value, ExceptionState& exceptionState)
{
+ ASSERT(!value->IsNumber());
v8::Isolate* isolate = v8::Isolate::GetCurrent();
v8::TryCatch block(isolate);
double doubleValue = value->NumberValue();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698