parse directives within arrow functions correctly (#5496)

fixes #5495
This commit is contained in:
Alex Lam S.L
2022-06-07 03:33:17 +01:00
committed by GitHub
parent be53c4838b
commit 44e5e99aae
2 changed files with 19 additions and 1 deletions

View File

@@ -1106,3 +1106,17 @@ issue_5416: {
expect_stdout: "undefined"
node_version: ">=4"
}
issue_5495: {
input: {
console.log((() => {
"use strict";
return function() {
return this;
}();
})());
}
expect_exact: 'console.log((()=>{"use strict";return function(){return this}()})());'
expect_stdout: "undefined"
node_version: ">=4"
}