Rhino.NativeWith.NewWithSpecial C# (CSharp) Method

NewWithSpecial() static private method

static private NewWithSpecial ( Context cx, Scriptable scope, object args ) : object
cx Context
scope Scriptable
args object
return object
		internal static object NewWithSpecial(Context cx, Scriptable scope, object[] args)
		{
			ScriptRuntime.CheckDeprecated(cx, "With");
			scope = ScriptableObject.GetTopLevelScope(scope);
			Rhino.NativeWith thisObj = new Rhino.NativeWith();
			thisObj.SetPrototype(args.Length == 0 ? ScriptableObject.GetObjectPrototype(scope) : ScriptRuntime.ToObject(cx, scope, args[0]));
			thisObj.SetParentScope(scope);
			return thisObj;
		}