Changeset 2736 in webkit for trunk/JavaScriptCore/kjs/function.cpp
- Timestamp:
- Nov 18, 2002, 1:55:23 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.cpp
r2249 r2736 60 60 Value protect(this); 61 61 //fprintf(stderr,"FunctionImp::FunctionImp this=%p\n"); 62 put(exec, "arguments",Null(),ReadOnly|DontDelete|DontEnum);62 put(exec,argumentsPropertyName,Null(),ReadOnly|DontDelete|DontEnum); 63 63 } 64 64 … … 109 109 // previous arguments object. 110 110 // Note: this does not appear to be part of the spec 111 Value oldArgs = get(&newExec, "arguments");111 Value oldArgs = get(&newExec, argumentsPropertyName); 112 112 113 113 if (codeType() == FunctionCode) { 114 114 assert(ctx.activationObject().inherits(&ActivationImp::info)); 115 115 Object argsObj = static_cast<ActivationImp*>(ctx.activationObject().imp())->argumentsObject(); 116 put(&newExec, "arguments", argsObj, DontDelete|DontEnum|ReadOnly);116 put(&newExec, argumentsPropertyName, argsObj, DontDelete|DontEnum|ReadOnly); 117 117 } 118 118 … … 128 128 exec->setException(newExec.exception()); 129 129 if (codeType() == FunctionCode) 130 put(&newExec, "arguments", oldArgs, DontDelete|DontEnum|ReadOnly);130 put(&newExec, argumentsPropertyName, oldArgs, DontDelete|DontEnum|ReadOnly); 131 131 132 132 #ifdef KJS_VERBOSE … … 309 309 Value protect(this); 310 310 arguments = new ArgumentsImp(exec,f, args); 311 put(exec, "arguments", Object(arguments), Internal|DontDelete);311 put(exec, argumentsPropertyName, Object(arguments), Internal|DontDelete); 312 312 } 313 313
Note:
See TracChangeset
for help on using the changeset viewer.