Changeset 188219 in webkit for trunk/Source/JavaScriptCore/runtime/CodeCache.cpp
- Timestamp:
- Aug 10, 2015, 1:24:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/CodeCache.cpp
r187205 r188219 167 167 return nullptr; 168 168 169 Function BodyNode* body = static_cast<FuncDeclNode*>(funcDecl)->body();170 ASSERT( body);171 if (! body)169 FunctionMetadataNode* metadata = static_cast<FuncDeclNode*>(funcDecl)->metadata(); 170 ASSERT(metadata); 171 if (!metadata) 172 172 return nullptr; 173 173 174 body->setEndPosition(positionBeforeLastNewline);174 metadata->setEndPosition(positionBeforeLastNewline); 175 175 // The Function constructor only has access to global variables, so no variables will be under TDZ. 176 176 VariableEnvironment emptyTDZVariables; 177 UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&vm, source, body, UnlinkedNormalFunction, ConstructAbility::CanConstruct, emptyTDZVariables);177 UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&vm, source, metadata, UnlinkedNormalFunction, ConstructAbility::CanConstruct, emptyTDZVariables); 178 178 functionExecutable->m_nameValue.set(vm, functionExecutable, jsString(&vm, name.string())); 179 179
Note:
See TracChangeset
for help on using the changeset viewer.