Changeset 30040 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp
- Timestamp:
- Feb 6, 2008, 9:33:07 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r29997 r30040 4670 4670 4671 4671 JSObject* proto = exec->lexicalGlobalObject()->objectConstructor()->construct(exec, exec->emptyList()); 4672 proto->put(exec, exec->propertyNames().constructor, func, ReadOnly | DontDelete | DontEnum); 4673 func->put(exec, exec->propertyNames().prototype, proto, Internal|DontDelete); 4674 4675 func->put(exec, exec->propertyNames().length, jsNumber(m_body->parameters().size()), ReadOnly|DontDelete|DontEnum); 4672 proto->putDirect(exec->propertyNames().constructor, func, ReadOnly | DontDelete | DontEnum); 4673 func->putDirect(exec->propertyNames().prototype, proto, Internal | DontDelete); 4674 func->putDirect(exec->propertyNames().length, jsNumber(m_body->parameters().size()), ReadOnly | DontDelete | DontEnum); 4676 4675 return func; 4677 4676 } … … 4708 4707 FunctionImp* func = new FunctionImp(exec, m_ident, m_body.get(), exec->scopeChain()); 4709 4708 JSObject* proto = exec->lexicalGlobalObject()->objectConstructor()->construct(exec, exec->emptyList()); 4710 proto->put (exec,exec->propertyNames().constructor, func, ReadOnly | DontDelete | DontEnum);4711 func->put (exec,exec->propertyNames().prototype, proto, Internal | DontDelete);4709 proto->putDirect(exec->propertyNames().constructor, func, ReadOnly | DontDelete | DontEnum); 4710 func->putDirect(exec->propertyNames().prototype, proto, Internal | DontDelete); 4712 4711 4713 4712 if (named) { 4714 functionScopeObject->put (exec,m_ident, func, Internal | ReadOnly | (exec->codeType() == EvalCode ? 0 : DontDelete));4713 functionScopeObject->putDirect(m_ident, func, Internal | ReadOnly | (exec->codeType() == EvalCode ? 0 : DontDelete)); 4715 4714 exec->popScope(); 4716 4715 }
Note:
See TracChangeset
for help on using the changeset viewer.