mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Remove duplicated parameter-check methods
Signed-off-by: Hyukwoo Park <hyukwoo.park@jbnu.ac.kr>
This commit is contained in:
parent
6ebbd22c06
commit
989e6922b6
4 changed files with 5 additions and 15 deletions
|
|
@ -186,7 +186,7 @@ InterpretedCodeBlock* ScriptParser::generateCodeBlockTreeFromASTWalker(Context*
|
|||
bool needToCaptureArguments = false;
|
||||
InterpretedCodeBlock* argumentsObjectHolder = codeBlock;
|
||||
while (argumentsObjectHolder && !argumentsObjectHolder->isGlobalCodeBlock()) {
|
||||
if (UNLIKELY(argumentsObjectHolder->hasParameterName(arguments))) {
|
||||
if (UNLIKELY(argumentsObjectHolder->isParameterName(arguments))) {
|
||||
// no need to create arguments object since it has a parameter of which name is `arguments`
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue