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
Hi, sorry if this is a duplicate.
I found that TypeScript is not reporting an error when using LegacyOctalEscapeSequence in a string literal when using Script Mode (according to ES2015 11.8.4):
TypeScript Version: 2.3.1-insiders.20170416
Code
functionfoo(){"use strict";vars="\04";}
Expected behavior:
SyntaxError: Octal literals are not allowed in strict mode.
Actual behavior:
No error.
Thanks!
The text was updated successfully, but these errors were encountered:
kpreisser
changed the title
No error shown when using _LegacyOctalEscapeSequence_ in string literal with Strict Mode
No error shown when using LegacyOctalEscapeSequence in string literal with Strict Mode
May 19, 2017
Uh oh!
There was an error while loading. Please reload this page.
Hi, sorry if this is a duplicate.
I found that TypeScript is not reporting an error when using LegacyOctalEscapeSequence in a string literal when using Script Mode (according to ES2015 11.8.4):
TypeScript Version: 2.3.1-insiders.20170416
Code
Expected behavior:
SyntaxError:
Octal literals are not allowed in strict mode.
Actual behavior:
No error.
Thanks!
The text was updated successfully, but these errors were encountered: