Chromium Code Reviews

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

Issue 2144093002: Adding checks for V8 functions returning Maybe<bool> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding checks for V8 functions returning Maybe<bool> Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
index 3d01b570bc04e60182766aeeec854a2be1e4e4fe..8c526ddc3e6488b4beabc536932930fe04babae6 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
@@ -917,7 +917,7 @@ void removeHiddenValueFromArray(v8::Isolate* isolate,
if (!array->Get(isolate->GetCurrentContext(), i).ToLocal(&item))
return;
if (item->StrictEquals(value)) {
- array->Delete(isolate->GetCurrentContext(), i);
+ array->Delete(isolate->GetCurrentContext(), i).ToChecked();
return;
}
}

Powered by Google App Engine