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

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

Issue 289423002: DevTools: added injectedScript.evaluateWithDetails, that return exception details if it occured (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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/V8JavaScriptCallFrameCustom.cpp
diff --git a/Source/bindings/core/v8/custom/V8JavaScriptCallFrameCustom.cpp b/Source/bindings/core/v8/custom/V8JavaScriptCallFrameCustom.cpp
index f1a88298a545ab8a9a5c21b893673c239263bf36..f72fb698d73af7959c6782e6cb53b0aace17eff9 100644
--- a/Source/bindings/core/v8/custom/V8JavaScriptCallFrameCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8JavaScriptCallFrameCustom.cpp
@@ -35,11 +35,11 @@
namespace WebCore {
-void V8JavaScriptCallFrame::evaluateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
+void V8JavaScriptCallFrame::evaluateWithExceptionDetailsMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(info.Holder());
String expression = toCoreStringWithUndefinedOrNullCheck(info[0]);
- v8SetReturnValue(info, impl->evaluate(expression));
+ v8SetReturnValue(info, impl->evaluateWithExceptionDetails(expression));
}
void V8JavaScriptCallFrame::restartMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)

Powered by Google App Engine
This is Rietveld 408576698