Changeset 215986 in webkit for trunk/Source/JavaScriptCore/interpreter
- Timestamp:
- Apr 30, 2017, 7:51:27 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r215984 r215986 1179 1179 FunctionExecutable* function = codeBlock->functionDecl(i); 1180 1180 PutPropertySlot slot(variableObject); 1181 variableObject->methodTable()->put(variableObject, callFrame, function->name(), JSFunction::create(vm, function, scope), slot); 1181 // We need create this variables because it will be used to emits code by bytecode generator 1182 variableObject->methodTable()->put(variableObject, callFrame, function->name(), jsUndefined(), slot); 1182 1183 } 1183 1184 } else { … … 1188 1189 return checkedReturn(throwSyntaxError(callFrame, throwScope, makeString("Can't create duplicate variable in eval: '", String(function->name().impl()), "'"))); 1189 1190 PutPropertySlot slot(variableObject); 1190 variableObject->methodTable()->put(variableObject, callFrame, function->name(), JSFunction::create(vm, function, scope), slot); 1191 // We need create this variables because it will be used to emits code by bytecode generator 1192 variableObject->methodTable()->put(variableObject, callFrame, function->name(), jsUndefined(), slot); 1191 1193 RETURN_IF_EXCEPTION(throwScope, checkedReturn(throwScope.exception())); 1192 1194 }
Note:
See TracChangeset
for help on using the changeset viewer.