Skip to content

Commit f31ff2d

Browse files
authored
Revert #36907 (#37122)
1 parent f9945f5 commit f31ff2d

File tree

68 files changed

+94
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+94
-94
lines changed

src/compiler/transformers/ts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ namespace ts {
673673
/*type*/ undefined,
674674
iife
675675
)
676-
], languageVersion > ScriptTarget.ES5 ? NodeFlags.Const : undefined)
676+
], languageVersion > ScriptTarget.ES5 ? NodeFlags.Let : undefined)
677677
);
678678

679679
setOriginalNode(varStatement, node);

tests/baselines/reference/awaitAndYieldInProperty.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function* test(x: Promise<string>) {
2020
//// [awaitAndYieldInProperty.js]
2121
async function* test(x) {
2222
var _a, _b, _c, _d, _e;
23-
const C = /** @class */ (() => {
23+
let C = /** @class */ (() => {
2424
var _e, _f, _g, _h;
2525
class C {
2626
constructor() {

tests/baselines/reference/classDeclarationCheckUsedBeforeDefinitionInItself.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class C3 {
44
}
55

66
//// [classDeclarationCheckUsedBeforeDefinitionInItself.js]
7-
const C3 = /** @class */ (() => {
7+
let C3 = /** @class */ (() => {
88
class C3 {
99
}
1010
C3.intance = new C3(); // ok

tests/baselines/reference/computedPropertyNames12_ES6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class C {
2020
var s;
2121
var n;
2222
var a;
23-
const C = /** @class */ (() => {
23+
let C = /** @class */ (() => {
2424
var _a, _b, _c;
2525
class C {
2626
constructor() {

tests/baselines/reference/computedPropertyNamesWithStaticProperty.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class C {
1111
}
1212

1313
//// [computedPropertyNamesWithStaticProperty.js]
14-
const C = /** @class */ (() => {
14+
let C = /** @class */ (() => {
1515
class C {
1616
get [C.staticProp]() {
1717
return "hello";

tests/baselines/reference/decoratedClassExportsCommonJS1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
1616
};
1717
Object.defineProperty(exports, "__esModule", { value: true });
1818
exports.Testing123 = void 0;
19-
const Testing123 = /** @class */ (() => {
19+
let Testing123 = /** @class */ (() => {
2020
var Testing123_1;
2121
let Testing123 = Testing123_1 = class Testing123 {
2222
};

tests/baselines/reference/decoratedClassExportsCommonJS2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
1414
};
1515
Object.defineProperty(exports, "__esModule", { value: true });
1616
exports.Testing123 = void 0;
17-
const Testing123 = /** @class */ (() => {
17+
let Testing123 = /** @class */ (() => {
1818
var Testing123_1;
1919
let Testing123 = Testing123_1 = class Testing123 {
2020
};

tests/baselines/reference/decoratedClassFromExternalModule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
1717
return c > 3 && r && Object.defineProperty(target, key, r), r;
1818
};
1919
function decorate(target) { }
20-
const Decorated = /** @class */ (() => {
20+
let Decorated = /** @class */ (() => {
2121
let Decorated = class Decorated {
2222
};
2323
Decorated = __decorate([

tests/baselines/reference/decoratedDefaultExportsGetExportedAmd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ define(["require", "exports"], function (require, exports) {
2424
"use strict";
2525
Object.defineProperty(exports, "__esModule", { value: true });
2626
var decorator;
27-
const Foo = /** @class */ (() => {
27+
let Foo = /** @class */ (() => {
2828
let Foo = class Foo {
2929
};
3030
Foo = __decorate([
@@ -45,7 +45,7 @@ define(["require", "exports"], function (require, exports) {
4545
"use strict";
4646
Object.defineProperty(exports, "__esModule", { value: true });
4747
var decorator;
48-
const default_1 = /** @class */ (() => {
48+
let default_1 = /** @class */ (() => {
4949
let default_1 = class {
5050
};
5151
default_1 = __decorate([

tests/baselines/reference/decoratedDefaultExportsGetExportedCommonjs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
2323
};
2424
Object.defineProperty(exports, "__esModule", { value: true });
2525
var decorator;
26-
const Foo = /** @class */ (() => {
26+
let Foo = /** @class */ (() => {
2727
let Foo = class Foo {
2828
};
2929
Foo = __decorate([
@@ -42,7 +42,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4242
};
4343
Object.defineProperty(exports, "__esModule", { value: true });
4444
var decorator;
45-
const default_1 = /** @class */ (() => {
45+
let default_1 = /** @class */ (() => {
4646
let default_1 = class {
4747
};
4848
default_1 = __decorate([

0 commit comments

Comments
 (0)