Skip to content

Commit 86b9b80

Browse files
committed
Update CodeCache.cpp
1 parent c652026 commit 86b9b80

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

JavaScriptCore/runtime/CodeCache.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ UnlinkedFunctionExecutable* CodeCache::getFunctionExecutableFromGlobalCode(VM& v
158158
RELEASE_ASSERT(funcExpr->isFuncExprNode());
159159
FunctionBodyNode* body = static_cast<FuncExprNode*>(funcExpr)->body();
160160
body->setEndPosition(positionBeforeLastNewline);
161-
ASSERT(body);
162-
ASSERT(body->ident().isNull());
161+
ASSERT(body && body->ident().isNull());
163162

164163
UnlinkedFunctionExecutable* functionExecutable = UnlinkedFunctionExecutable::create(&vm, source, body, true);
165164
functionExecutable->m_nameValue.set(vm, functionExecutable, jsString(&vm, name.string()));

0 commit comments

Comments
 (0)