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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.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/modules/webgl/WebGLRenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
index 78328c47032d9242c0b8e7f8a0efc21da93bfeef..ec3b48206e6f0da15963f01768e62ad4a3a33ec1 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -6412,9 +6412,9 @@ void WebGLRenderingContextBase::preserveObjectWrapper(ScriptState* scriptState,
v8::Local<v8::Array> localCache = persistentCache->newLocal(isolate);
if (targetObject) {
- v8CallOrCrash(localCache->Set(scriptState->context(), index, targetObject->mainWorldWrapper(isolate)));
+ localCache->Set(scriptState->context(), index, targetObject->mainWorldWrapper(isolate)).ToChecked();
} else {
- v8CallOrCrash(localCache->Set(scriptState->context(), index, v8::Null(isolate)));
+ localCache->Set(scriptState->context(), index, v8::Null(isolate)).ToChecked();
}
}

Powered by Google App Engine
This is Rietveld 408576698