Skip to content

Commit f70d9a8

Browse files
woessezzarghili
authored andcommitted
Mark arrow functions using super as also using this.
(cherry picked from commit 5770d03)
1 parent 900af29 commit f70d9a8

File tree

1 file changed

+1
-1
lines changed
  • graal-js/src/com.oracle.js.parser/src/com/oracle/js/parser

1 file changed

+1
-1
lines changed

graal-js/src/com.oracle.js.parser/src/com/oracle/js/parser/Parser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7554,7 +7554,7 @@ private void markSuperProperty() {
75547554
if (currentFunction.isMethod()) {
75557555
currentFunction.setFlag(FunctionNode.USES_SUPER);
75567556
addIdentifierReference(SUPER.getName());
7557-
addIdentifierReference(THIS.getName());
7557+
markThis();
75587558
}
75597559
}
75607560

0 commit comments

Comments
 (0)