Skip to content

Commit 079ee23

Browse files
committed
add lib: es5 option on es5-dependent tests
1 parent e8794bb commit 079ee23

File tree

85 files changed

+89
-7
lines changed

Some content is hidden

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

85 files changed

+89
-7
lines changed

tests/cases/compiler/2dArrays.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @lib: es5
12
class Cell {
23
}
34

tests/cases/compiler/APISample_compile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// @includebuiltfile: typescript_standalone.d.ts
33
// @noImplicitAny:true
44
// @strictNullChecks:true
5+
// @lib: es5
56

67
/*
78
* Note: This test is a public API sample. The sample sources can be found

tests/cases/compiler/APISample_linter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// @includebuiltfile: typescript_standalone.d.ts
33
// @noImplicitAny:true
44
// @strictNullChecks:true
5+
// @lib: es5
56

67
/*
78
* Note: This test is a public API sample. The sample sources can be found

tests/cases/compiler/APISample_transform.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// @includebuiltfile: typescript_standalone.d.ts
33
// @noImplicitAny:true
44
// @strictNullChecks:true
5+
// @lib: es5
56

67
/*
78
* Note: This test is a public API sample. The sample sources can be found

tests/cases/compiler/APISample_watcher.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// @includebuiltfile: typescript_standalone.d.ts
33
// @noImplicitAny:true
44
// @strictNullChecks:true
5+
// @lib: es5
56

67
/*
78
* Note: This test is a public API sample. The sample sources can be found

tests/cases/compiler/anyInferenceAnonymousFunctions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @lib: es5
12
var paired: any[];
23

34
paired.reduce(function (a1, a2) {

tests/cases/compiler/argumentsAsPropertyName.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @target: es5
12
// target: es5
23
type MyType = {
34
arguments: Array<string>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
// @lib: es5
12
var x = [].concat([{ a: 1 }], [{ a: 2 }])
23
.map(b => b.a);

tests/cases/compiler/arrayFilter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @lib: es5
12
var foo = [
23
{ name: 'bar' },
34
{ name: null },

tests/cases/compiler/assigningFromObjectToAnythingElse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @lib: es5
12
var x: Object;
23
var y: RegExp;
34
y = x;

0 commit comments

Comments
 (0)