public JsFunction(IEnvironment environment, IJsClass @class, string name, IList<string> arguments, IAst body) : base(environment, @class) { Name = name; Arguments = arguments; Body = body; }
protected JsArgumentsPrototype(IEnvironment environment, IEnvironment callEnvironment, IJsClass @class, IList<IJsValue> arguments) : base(environment, @class) { CallEnvironment = callEnvironment; Arguments = arguments; }
public JsGlobalObject(IEnvironment environment, IJsClass @class) : base(environment, @class) { var context = environment.Context; Put("Array", context.ArrayConstructor); Put("Boolean", context.BooleanConstructor); Put("Function", context.FunctionConstructor); Put("Number", context.NumberConstructor); Put("Object", context.ObjectConstructor); Put("String", context.StringConstructor); Put("Error", context.ErrorConstructor); Put("EvalError", context.EvalErrorConstructor); Put("RangeError", context.RangeErrorConstructor); Put("ReferenceError", context.ReferenceErrorConstructor); Put("SyntaxError", context.SyntaxErrorConstructor); Put("TypeError", context.TypeErrorConstructor); Put("URIError", context.UriErrorConstructor); Put("Global", this); }
protected JsStringPrototype(IEnvironment environment, IJsClass @class) : base(environment, @class) { }
public JsArray(IEnvironment environment, IJsClass @class, List<IJsValue> members) : base(environment, @class) { _array = members; }
public JsObject(IEnvironment environment, IJsClass @class) : base(environment, @class) { }
protected JsObjectPrototype(IEnvironment environment, IJsClass @class) { Environment = environment; Class = @class ?? JsClass.Default; Prototype = Class.Prototype; }
public JsUriError(IEnvironment environment, IJsClass @class) : base(environment, @class) { }
public JsNumber(IEnvironment environment, IJsClass @class, double value) : base(environment, @class) { _value = value; }
public JsArray(IEnvironment environment, IJsClass @class, IEnumerable<IJsValue> members) : this(environment, @class, members.ToList()) { }
protected JsFunctionPrototype(IEnvironment environment, IJsClass @class) : base(environment, @class) { }
protected JsBooleanPrototype(IEnvironment environment, IJsClass @class) : base(environment, @class) { }
public JsString(IEnvironment environment, IJsClass @class, string value) : base(environment, @class) { _value = value; }
protected AbstractErrorConstructor(IEnvironment environment, IJsClass @class, IJsClass constructedClass) : base(environment, @class, constructedClass) { }
protected JsArrayProtype(IEnvironment environment, IJsClass @class) : base(environment, @class) { }
public FunctionConstructor(IEnvironment environment, IJsClass @class, IJsClass constructedClass) : base(environment, @class, constructedClass) { }
protected JsConstructorFunction(IEnvironment environment, IJsClass @class, IJsClass constructedClass) : base(environment, @class) { ConstructedClass = constructedClass; }
public JsBoolean(IEnvironment environment, IJsClass @class, bool value) : base(environment, @class) { _value = value; }
public JsArgumentsConstructor(IEnvironment environment, IJsClass @class, IJsClass constructedClass) : base(environment, @class, constructedClass) { }
protected JsErrorPrototype(IEnvironment environment, IJsClass @class) : base(environment, @class) { }
public ReferenceErrorConstructor(IEnvironment environment, IJsClass @class, IJsClass constructedClass) : base(environment, @class, constructedClass) { }
public JsReferenceError(IEnvironment environment, IJsClass @class) : base(environment, @class) { }
public JsArguments(IEnvironment environment, IEnvironment callEnvironment, IJsClass @class, IList<IJsValue> arguments) : base(environment, callEnvironment, @class, arguments) { }
public StringConstructor(IEnvironment environment, IJsClass @class, IJsClass constructedClass) : base(environment, @class, constructedClass) { }
public BooleanConstructor(IEnvironment environment, IJsClass @class, IJsClass constructedClass) : base(environment, @class, constructedClass) { }
public JsSyntaxErrorPrototype(IEnvironment environment, IJsClass @class) : base(environment, @class) { }
public JsArray(IEnvironment environment, IJsClass @class, int length) : this(environment, @class, Enumerable.Range(0, length).Select(_ => JsUndefined.Value)) { }