diff --git a/es2panda/binder/binder.cpp b/es2panda/binder/binder.cpp index 53475854ca9cf6f4ac932186768602a0e9ed7ab6..5727dd0a36a80858c020f67254a458e466a8d9f2 100644 --- a/es2panda/binder/binder.cpp +++ b/es2panda/binder/binder.cpp @@ -648,7 +648,7 @@ void Binder::ResolveReference(const ir::AstNode *parent, ir::AstNode *childNode) case ir::AstNodeType::SCRIPT_FUNCTION: { auto *scriptFunc = childNode->AsScriptFunction(); util::Helpers::ScanDirectives(const_cast(scriptFunc), - Program()->GetLineIndex()); + Program()->GetLineIndex()); auto *funcScope = scriptFunc->Scope(); auto *outerScope = scope_;