admin
2020-06-10 a610f2ab6e543d2cb78c1ef212ac6a74ddc067d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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
    {
        /// <summary>
        /// Execute a string of JavaScript code in this V8 context.
        /// </summary>
        /// <param name="code">JavaScript code to execute</param>
        /// <param name="scriptUrl">Is the URL where the script in question can be found, if any</param>
        /// <param name="startLine">Is the base line number to use for error reporting.</param>
        /// <param name="exception">Is the exception if any.</param>
        /// <returns>On success the function will return true. On failure <paramref name="exception"/> will be set to the exception, if any, and the function will return false.</returns>
        bool Execute(string code, string scriptUrl, int startLine, out V8Exception exception);
    }
}