mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Remove unnecessary strlen and memory copys
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
ecf2a586b7
commit
4a952115d0
18 changed files with 66 additions and 96 deletions
|
|
@ -289,7 +289,7 @@ void ScriptParser::generateCodeBlockTreeFromASTWalkerPostProcess(InterpretedCode
|
|||
|
||||
cb->computeVariables();
|
||||
if (cb->m_identifierOnStackCount > VARIABLE_LIMIT || cb->m_identifierOnHeapCount > VARIABLE_LIMIT || cb->m_lexicalBlockStackAllocatedIdentifierMaximumDepth > VARIABLE_LIMIT) {
|
||||
auto err = new esprima::Error(new ASCIIString("variable limit exceeded"));
|
||||
auto err = new esprima::Error(new ASCIIStringFromExternalMemory("variable limit exceeded"));
|
||||
err->errorCode = ErrorCode::SyntaxError;
|
||||
err->lineNumber = cb->m_functionStart.line;
|
||||
err->column = cb->m_functionStart.column;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue