We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5282a8d commit a67a749Copy full SHA for a67a749
src/compiler/transformers/esnext.ts
@@ -402,7 +402,7 @@ namespace ts {
402
};
403
404
export function createAssignHelper(context: TransformationContext, attributesSegments: Expression[]) {
405
- if (context.getCompilerOptions().target === ScriptTarget.ES2015) {
+ if (context.getCompilerOptions().target >= ScriptTarget.ES2015) {
406
return createCall(createPropertyAccess(createIdentifier("Object"), "assign"),
407
/*typeArguments*/ undefined,
408
attributesSegments);
0 commit comments