public Arguments(NativeCall activation)
{
this.activation = activation;
Scriptable parent = activation.GetParentScope();
SetParentScope(parent);
SetPrototype(ScriptableObject.GetObjectPrototype(parent));
args = activation.originalArgs;
lengthObj = Sharpen.Extensions.ValueOf(args.Length);
NativeFunction f = activation.function;
calleeObj = f;
Scriptable topLevel = GetTopLevelScope(parent);
constructor = GetProperty(topLevel, "Object");
int version = f.GetLanguageVersion();
if (version <= Context.VERSION_1_3 && version != Context.VERSION_DEFAULT)
{
callerObj = null;
}
else
{
callerObj = ScriptableConstants.NOT_FOUND;
}
}