Changeset 127810 in webkit for trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Sep 6, 2012, 6:42:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r127774 r127810 1348 1348 FunctionExecutable* function = codeBlock->functionDecl(i); 1349 1349 PutPropertySlot slot; 1350 variableObject->methodTable()->put(variableObject, callFrame, function->name(), function->make(callFrame, scope), slot);1350 variableObject->methodTable()->put(variableObject, callFrame, function->name(), JSFunction::create(callFrame, function, scope), slot); 1351 1351 } 1352 1352 } … … 4280 4280 JSFunction* func = JSFunction::create(callFrame, function, callFrame->scope()); 4281 4281 4282 /*4283 The Identifier in a FunctionExpression can be referenced from inside4284 the FunctionExpression's FunctionBody to allow the function to call4285 itself recursively. However, unlike in a FunctionDeclaration, the4286 Identifier in a FunctionExpression cannot be referenced from and4287 does not affect the scope enclosing the FunctionExpression.4288 */4289 if (!function->name().isNull()) {4290 JSNameScope* functionScopeObject = JSNameScope::create(callFrame, function->name(), func, ReadOnly | DontDelete);4291 func->setScope(*globalData, functionScopeObject);4292 }4293 4294 4282 callFrame->uncheckedR(dst) = JSValue(func); 4295 4283
Note:
See TracChangeset
for help on using the changeset viewer.