// Copyright © 2019 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.RenderProcess
{
public interface IV8Context
{
///
/// Execute a string of JavaScript code in this V8 context.
///
/// JavaScript code to execute
/// Is the URL where the script in question can be found, if any
/// Is the base line number to use for error reporting.
/// Is the exception if any.
/// On success the function will return true. On failure will be set to the exception, if any, and the function will return false.
bool Execute(string code, string scriptUrl, int startLine, out V8Exception exception);
}
}