mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
chromium 21.0.1148.0, CEF r646 (Release only)
This commit is contained in:
+12
-14
@@ -45,24 +45,22 @@ namespace CefSharp
|
||||
CefV8ValueList args;
|
||||
args.push_back(arg);
|
||||
|
||||
if (eval->ExecuteFunctionWithContext(context, global, args,
|
||||
result, exception, false))
|
||||
result = eval->ExecuteFunctionWithContext(context, global, args);
|
||||
|
||||
if (result == nullptr)
|
||||
{
|
||||
if (exception)
|
||||
// XXX
|
||||
_exceptionMessage = "Error";
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
CefString message = exception->GetMessage();
|
||||
_exceptionMessage = toClr(message);
|
||||
_result = convertFromCef(result);
|
||||
}
|
||||
else
|
||||
catch (Exception^ ex)
|
||||
{
|
||||
try
|
||||
{
|
||||
_result = convertFromCef(result);
|
||||
}
|
||||
catch (Exception^ ex)
|
||||
{
|
||||
_exceptionMessage = ex->Message;
|
||||
}
|
||||
_exceptionMessage = ex->Message;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user