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

Unified Diff: third_party/WebKit/Source/core/animation/AnimationTestHelper.cpp

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/core/animation/AnimationTestHelper.cpp
diff --git a/third_party/WebKit/Source/core/animation/AnimationTestHelper.cpp b/third_party/WebKit/Source/core/animation/AnimationTestHelper.cpp
index 641a6e80a6b9812db4e94185633cff78b50c39c4..d9987b6d4daa359a6f4f94eddde1c4e3ff15143f 100644
--- a/third_party/WebKit/Source/core/animation/AnimationTestHelper.cpp
+++ b/third_party/WebKit/Source/core/animation/AnimationTestHelper.cpp
@@ -20,12 +20,12 @@ v8::Local<v8::Value> doubleToV8Value(double number)
void setV8ObjectPropertyAsString(v8::Isolate* isolate, v8::Local<v8::Object> object, String name, String value)
{
- v8CallOrCrash(object->Set(isolate->GetCurrentContext(), stringToV8Value(name), stringToV8Value(value)));
+ object->Set(isolate->GetCurrentContext(), stringToV8Value(name), stringToV8Value(value)).ToChecked();
}
void setV8ObjectPropertyAsNumber(v8::Isolate* isolate, v8::Local<v8::Object> object, String name, double value)
{
- v8CallOrCrash(object->Set(isolate->GetCurrentContext(), stringToV8Value(name), doubleToV8Value(value)));
+ object->Set(isolate->GetCurrentContext(), stringToV8Value(name), doubleToV8Value(value)).ToChecked();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698