예제 #1
0
        public Rooted <JS.Value> Evaluate(JSHandleObject scope, string scriptSource, string filename = null, uint lineNumber = 0)
        {
            var resultRoot = new Rooted <JS.Value>(this, JS.Value.Undefined);

            if (JSAPI.EvaluateScript(
                    this, scope,
                    scriptSource, filename, lineNumber,
                    resultRoot
                    ))
            {
                return(resultRoot);
            }

            resultRoot.Dispose();
            return(null);
        }