Changeset 31962 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp
- Timestamp:
- Apr 16, 2008, 1:58:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r31746 r31962 3843 3843 ASSERT(base && base->isVariableObject()); 3844 3844 3845 static_cast<JSVariableObject*>(base)-> initializeVariable(exec, m_ident, val, ReadOnly);3845 static_cast<JSVariableObject*>(base)->putWithAttributes(exec, m_ident, val, ReadOnly); 3846 3846 } 3847 3847 … … 3863 3863 if (exec->codeType() != EvalCode) 3864 3864 attributes |= DontDelete; 3865 variableObject-> initializeVariable(exec, m_ident, val, attributes);3865 variableObject->putWithAttributes(exec, m_ident, val, attributes); 3866 3866 } else { 3867 3867 JSValue* val = m_init->evaluate(exec); … … 3874 3874 return handleSlowCase(exec, chain, val); 3875 3875 3876 variableObject-> initializeVariable(exec, m_ident, val, ReadOnly);3876 variableObject->putWithAttributes(exec, m_ident, val, ReadOnly); 3877 3877 } 3878 3878 } … … 4851 4851 if (m_varStack[i].second & DeclarationStacks::IsConstant) 4852 4852 attributes = ReadOnly; 4853 variableObject-> initializeVariable(exec, ident, jsUndefined(), attributes);4853 variableObject->putWithAttributes(exec, ident, jsUndefined(), attributes); 4854 4854 } 4855 4855 4856 4856 for (i = 0, size = m_functionStack.size(); i < size; ++i) { 4857 4857 FuncDeclNode* funcDecl = m_functionStack[i]; 4858 variableObject-> initializeVariable(exec, funcDecl->m_ident, funcDecl->makeFunction(exec), 0);4858 variableObject->putWithAttributes(exec, funcDecl->m_ident, funcDecl->makeFunction(exec), 0); 4859 4859 } 4860 4860 }
Note:
See TracChangeset
for help on using the changeset viewer.