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
After PR #9353 has been merged, typescriptServices.js (in this case) again cannot be run in strict mode due to using the identifier package in services.ts, which is a reserved word in strict mode:
C:\Users\VPC\Desktop\TypeScript\built\local>node --use_strict typescriptServices.js
C:\Users\VPC\Desktop\TypeScript\built\local\typescriptServices.js:68849
var package = _d[_c];
^^^^^^^
SyntaxError: Unexpected strict mode reserved word
Now that TSC requires at least ES5 (#10125), might there be an option to add "use strict"; to the ts files of the TypeScript repo? This should prevent using such reserved identifiers.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
this is a follow-up issue to #9449.
TypeScript Version: master (4685646)
After PR #9353 has been merged, typescriptServices.js (in this case) again cannot be run in strict mode due to using the identifier
package
inservices.ts
, which is a reserved word in strict mode:(running current master)
As @HerringtonDarkholme noted, this causes an error in the Closure Compiler.
Now that TSC requires at least ES5 (#10125), might there be an option to add
"use strict";
to the ts files of the TypeScript repo? This should prevent using such reserved identifiers.Thanks!
The text was updated successfully, but these errors were encountered: