semantic: is_reference_to_global_variable
doesn't return expected value in specific case.
#8217
Labels
C-bug
Category - Bug
What is this
Semantic.is_reference_to_global_variable
doesn't return expected value in case of below.js source code
When overriding global variable without declarations, I think this is no longer global variables.
But when checking
Object identifier
ofconsole.log
argument by usingis_reference_to_global_variable
, it returnstrue
.I think this is because of
Object
is still inroot_unresolved_references
.What I want
In this case,
is_reference_to_global_variable
returnsfalse
.Or I want to know another way to check whether identifier of global variable is overridden or not.
The text was updated successfully, but these errors were encountered: