You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following cases, it should throw SyntaxError "Illegal 'use strict' directive in function with non-simple parameter list". Acorn had worked correctly until 4.0.6, but currently Acorn does not throw.
Whether strict mode or not, it should throw early syntax errors if there is "use strict"directive in the body of functions which have non-simple parameters.
// in sourceType: "script""use strict"functionfoo(a=1){"use strict"}
// in sourceType: "module"functionfoo(a=1){"use strict"}