Rhino.ScriptRuntime.NewBuiltinObject C# (CSharp) Method

NewBuiltinObject() public static method

public static NewBuiltinObject ( Context cx, Scriptable scope, TopLevel type, object args ) : Scriptable
cx Context
scope Scriptable
type TopLevel
args object
return Scriptable
		public static Scriptable NewBuiltinObject(Context cx, Scriptable scope, TopLevel.Builtins type, object[] args)
		{
			scope = ScriptableObject.GetTopLevelScope(scope);
			Function ctor = TopLevel.GetBuiltinCtor(cx, scope, type);
			if (args == null)
			{
				args = ScriptRuntime.emptyArgs;
			}
			return ctor.Construct(cx, scope, args);
		}
ScriptRuntime