File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -19970,9 +19970,13 @@ namespace ts {
19970
19970
if (requestedExternalEmitHelpers & NodeFlags.HasClassExtends && languageVersion < ScriptTarget.ES2015) {
19971
19971
verifyHelperSymbol(exports, "__extends", SymbolFlags.Value);
19972
19972
}
19973
- if (requestedExternalEmitHelpers & NodeFlags.HasSpreadAttribute && compilerOptions.jsx !== JsxEmit.Preserve) {
19973
+ if (requestedExternalEmitHelpers & NodeFlags.HasSpreadAttribute &&
19974
+ (languageVersion < ScriptTarget.ESNext || compilerOptions.jsx === JsxEmit.React)) {
19974
19975
verifyHelperSymbol(exports, "__assign", SymbolFlags.Value);
19975
19976
}
19977
+ if (languageVersion < ScriptTarget.ESNext && requestedExternalEmitHelpers & NodeFlags.HasRestAttribute) {
19978
+ verifyHelperSymbol(exports, "__rest", SymbolFlags.Value);
19979
+ }
19976
19980
if (requestedExternalEmitHelpers & NodeFlags.HasDecorators) {
19977
19981
verifyHelperSymbol(exports, "__decorate", SymbolFlags.Value);
19978
19982
if (compilerOptions.emitDecoratorMetadata) {
Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ namespace ts {
433
433
BlockScoped = Let | Const ,
434
434
435
435
ReachabilityCheckFlags = HasImplicitReturn | HasExplicitReturn ,
436
- EmitHelperFlags = HasClassExtends | HasDecorators | HasParamDecorators | HasAsyncFunctions | HasSpreadAttribute ,
436
+ EmitHelperFlags = HasClassExtends | HasDecorators | HasParamDecorators | HasAsyncFunctions | HasSpreadAttribute | HasRestAttribute ,
437
437
ReachabilityAndEmitFlags = ReachabilityCheckFlags | EmitHelperFlags ,
438
438
439
439
// Parsing context flags
You can’t perform that action at this time.
0 commit comments