Esempio n. 1
0
 public FunctionEnvironment(IEnvironment parent, IJsFunction function, IJsValue @this, IList<IJsValue> arguments)
 {
     if (parent == null) throw new ArgumentNullException("parent");
     Parent = parent;
     Function = function;
     This = @this;
     Arguments = arguments;
 }
Esempio n. 2
0
        private static bool IsArray(IJsObject jsObject)
        {
            if (jsObject == null || jsObject.IsDisposed)
            {
                return(false);
            }

            IJsFunction isArrayFunction = jsObject.Frame.ExecuteJavaScript <IJsFunction>("Array.isArray").Result;

            return(isArrayFunction.Invoke <bool>(null, jsObject));
        }
Esempio n. 3
0
 private IJsValue saf(IJsFunction callee, IJsObject caller, bool isConstructCall, IReadOnlyList <IJsValue> arguments)
 {
     return(null);
 }