Skip to content

Commit 70476c6

Browse files
committed
Tests
1 parent f3b2563 commit 70476c6

18 files changed

+2365
-111
lines changed

testdata/baselines/reference/submodule/compiler/es5-commonjs8.errors.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

testdata/baselines/reference/submodule/compiler/es5-commonjs8.errors.txt.diff

Lines changed: 0 additions & 13 deletions
This file was deleted.

testdata/baselines/reference/submodule/compiler/isolatedModulesNoEmitOnError.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
//// [file1.ts]
44
export const x: string = 3;
55

6+
7+
8+
!!!! File file1.js missing from original emit, but present in noCheck emit
69
//// [file1.js]
710
export const x = 3;

testdata/baselines/reference/submodule/compiler/isolatedModulesNoEmitOnError.js.diff

Lines changed: 0 additions & 11 deletions
This file was deleted.

testdata/baselines/reference/submodule/compiler/noEmitOnError.js

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testdata/baselines/reference/submodule/compiler/noEmitOnError.js.diff

Lines changed: 0 additions & 20 deletions
This file was deleted.

testdata/baselines/reference/submodule/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.errors.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
shadowedReservedCompilerDeclarationsWithNoEmit.ts(23,13): error TS1215: Invalid use of 'arguments'. Modules are automatically in strict mode.
2-
shadowedReservedCompilerDeclarationsWithNoEmit.ts(44,5): error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module.
3-
shadowedReservedCompilerDeclarationsWithNoEmit.ts(47,5): error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module.
42

53

6-
==== shadowedReservedCompilerDeclarationsWithNoEmit.ts (3 errors) ====
4+
==== shadowedReservedCompilerDeclarationsWithNoEmit.ts (1 errors) ====
75
// Shadowed captured this and super
86
class Base { }
97
class C extends Base {
@@ -50,13 +48,9 @@ shadowedReservedCompilerDeclarationsWithNoEmit.ts(47,5): error TS2441: Duplicate
5048

5149
// shadowed require
5250
var require = 0;
53-
~~~~~~~
54-
!!! error TS2441: Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of a module.
5551

5652
// shadowed exports
5753
var exports = 0;
58-
~~~~~~~
59-
!!! error TS2441: Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of a module.
6054

6155

6256
export { };

testdata/baselines/reference/submodule/compiler/shadowedReservedCompilerDeclarationsWithNoEmit.errors.txt.diff

Lines changed: 0 additions & 29 deletions
This file was deleted.

testdata/baselines/reference/submodule/conformance/autoAccessor1(target=es5).js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ class C1 {
99
}
1010

1111

12+
13+
14+
!!!! File autoAccessor1.js missing from original emit, but present in noCheck emit
1215
//// [autoAccessor1.js]
1316
class C1 {
1417
accessor a;

testdata/baselines/reference/submodule/conformance/autoAccessor1(target=es5).js.diff

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
--- old.autoAccessor1(target=es5).js
22
+++ new.autoAccessor1(target=es5).js
3-
@@= skipped -8, +8 lines =@@
4-
}
3+
@@= skipped -12, +12 lines =@@
54

6-
7-
-
8-
-
9-
-!!!! File autoAccessor1.js missing from original emit, but present in noCheck emit
5+
!!!! File autoAccessor1.js missing from original emit, but present in noCheck emit
106
//// [autoAccessor1.js]
117
-var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
128
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");

0 commit comments

Comments
 (0)