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
The result has one errors: SyntaxError: 'with' in strict mode..
However, if you use sourceType: "script" or errorRecovery: false or both, no error is generated. I believe there shouldn't be an error because this file looks like a script and therefore should be non-strict by default.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am unsure whether this is working as intended or a bug, so discussing it first
The result has one
errors
:SyntaxError: 'with' in strict mode.
.However, if you use
sourceType: "script"
orerrorRecovery: false
or both, no error is generated. I believe there shouldn't be an error because this file looks like a script and therefore should be non-strict by default.Beta Was this translation helpful? Give feedback.
All reactions