diff --git a/tests/baselines/reference/strictMode1.js b/tests/baselines/reference/strictMode1.js deleted file mode 100644 index f4c9db50ab..0000000000 --- a/tests/baselines/reference/strictMode1.js +++ /dev/null @@ -1,25 +0,0 @@ -//// [strictMode1.ts] -"use strict"; -class A {} -class B extends A {} - -//// [strictMode1.js] -"use strict"; -var __extends = this.__extends || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { this.constructor = d; } - __.prototype = b.prototype; - d.prototype = new __(); -}; -var A = (function () { - function A() { - } - return A; -})(); -var B = (function (_super) { - __extends(B, _super); - function B() { - _super.apply(this, arguments); - } - return B; -})(A); diff --git a/tests/baselines/reference/strictMode1.types b/tests/baselines/reference/strictMode1.types deleted file mode 100644 index c0e57de97d..0000000000 --- a/tests/baselines/reference/strictMode1.types +++ /dev/null @@ -1,9 +0,0 @@ -=== tests/cases/compiler/strictMode1.ts === -"use strict"; -class A {} ->A : A - -class B extends A {} ->B : B ->A : A - diff --git a/tests/baselines/reference/strictMode2.js b/tests/baselines/reference/strictMode2.js deleted file mode 100644 index 4331b1ef52..0000000000 --- a/tests/baselines/reference/strictMode2.js +++ /dev/null @@ -1,13 +0,0 @@ -//// [strictMode2.ts] -"use strict"; - -function foo() { - - return 30; -} - -//// [strictMode2.js] -"use strict"; -function foo() { - return 30; -} diff --git a/tests/baselines/reference/strictMode2.types b/tests/baselines/reference/strictMode2.types deleted file mode 100644 index 69c972355b..0000000000 --- a/tests/baselines/reference/strictMode2.types +++ /dev/null @@ -1,8 +0,0 @@ -=== tests/cases/compiler/strictMode2.ts === -"use strict"; - -function foo() { ->foo : () => number - - return 30; -} diff --git a/tests/baselines/reference/strictMode3.js b/tests/baselines/reference/strictMode3.js deleted file mode 100644 index 792ab931f5..0000000000 --- a/tests/baselines/reference/strictMode3.js +++ /dev/null @@ -1,36 +0,0 @@ -//// [strictMode3.ts] -"use strict"; - -class A { -} - -class B extends A { -} - -function foo() { - return this.window; -} - -//// [strictMode3.js] -"use strict"; -var __extends = this.__extends || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { this.constructor = d; } - __.prototype = b.prototype; - d.prototype = new __(); -}; -var A = (function () { - function A() { - } - return A; -})(); -var B = (function (_super) { - __extends(B, _super); - function B() { - _super.apply(this, arguments); - } - return B; -})(A); -function foo() { - return this.window; -} diff --git a/tests/baselines/reference/strictMode3.types b/tests/baselines/reference/strictMode3.types deleted file mode 100644 index 701ebc12d9..0000000000 --- a/tests/baselines/reference/strictMode3.types +++ /dev/null @@ -1,20 +0,0 @@ -=== tests/cases/compiler/strictMode3.ts === -"use strict"; - -class A { ->A : A -} - -class B extends A { ->B : B ->A : A -} - -function foo() { ->foo : () => any - - return this.window; ->this.window : any ->this : any ->window : any -} diff --git a/tests/baselines/reference/strictMode4.js b/tests/baselines/reference/strictMode4.js deleted file mode 100644 index b7bf798b34..0000000000 --- a/tests/baselines/reference/strictMode4.js +++ /dev/null @@ -1,14 +0,0 @@ -//// [strictMode4.ts] -"use strict"; - -class A { -} - - -//// [strictMode4.js] -"use strict"; -var A = (function () { - function A() { - } - return A; -})(); diff --git a/tests/baselines/reference/strictMode4.types b/tests/baselines/reference/strictMode4.types deleted file mode 100644 index 7aea014b04..0000000000 --- a/tests/baselines/reference/strictMode4.types +++ /dev/null @@ -1,7 +0,0 @@ -=== tests/cases/compiler/strictMode4.ts === -"use strict"; - -class A { ->A : A -} - diff --git a/tests/baselines/reference/strictMode5.js b/tests/baselines/reference/strictMode5.js deleted file mode 100644 index 8e4021820f..0000000000 --- a/tests/baselines/reference/strictMode5.js +++ /dev/null @@ -1,45 +0,0 @@ -//// [strictMode5.ts] -function foo(...args) { - "use strict" -} - -class A { - m() { - "use strict" - - var v = () => { - return this.n(); - }; - } - n() {} -} - -function bar(x: number = 10) { - "use strict" -} - -//// [strictMode5.js] -function foo() { - "use strict"; - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i - 0] = arguments[_i]; - } -} -var A = (function () { - function A() { - } - A.prototype.m = function () { - "use strict"; - var _this = this; - var v = function () { - return _this.n(); - }; - }; - A.prototype.n = function () { }; - return A; -})(); -function bar(x) { - "use strict"; - if (x === void 0) { x = 10; } -} diff --git a/tests/baselines/reference/strictMode5.types b/tests/baselines/reference/strictMode5.types deleted file mode 100644 index dd668dc24d..0000000000 --- a/tests/baselines/reference/strictMode5.types +++ /dev/null @@ -1,38 +0,0 @@ -=== tests/cases/compiler/strictMode5.ts === -function foo(...args) { ->foo : (...args: any[]) => void ->args : any[] - - "use strict" -} - -class A { ->A : A - - m() { ->m : () => void - - "use strict" - - var v = () => { ->v : () => void ->() => { return this.n(); } : () => void - - return this.n(); ->this.n() : void ->this.n : () => void ->this : A ->n : () => void - - }; - } - n() {} ->n : () => void -} - -function bar(x: number = 10) { ->bar : (x?: number) => void ->x : number - - "use strict" -} diff --git a/tests/cases/compiler/strictMode1.ts b/tests/cases/compiler/strictMode1.ts deleted file mode 100644 index 44b495e96b..0000000000 --- a/tests/cases/compiler/strictMode1.ts +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -class A {} -class B extends A {} \ No newline at end of file diff --git a/tests/cases/compiler/strictMode2.ts b/tests/cases/compiler/strictMode2.ts deleted file mode 100644 index 87d1430c2f..0000000000 --- a/tests/cases/compiler/strictMode2.ts +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -function foo() { - - return 30; -} \ No newline at end of file diff --git a/tests/cases/compiler/strictMode3.ts b/tests/cases/compiler/strictMode3.ts deleted file mode 100644 index 3535188dbb..0000000000 --- a/tests/cases/compiler/strictMode3.ts +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -class A { -} - -class B extends A { -} - -function foo() { - return this.window; -} \ No newline at end of file diff --git a/tests/cases/compiler/strictMode4.ts b/tests/cases/compiler/strictMode4.ts deleted file mode 100644 index e9c99c8bdb..0000000000 --- a/tests/cases/compiler/strictMode4.ts +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; - -class A { -} diff --git a/tests/cases/compiler/strictMode5.ts b/tests/cases/compiler/strictMode5.ts deleted file mode 100644 index c980cf7c86..0000000000 --- a/tests/cases/compiler/strictMode5.ts +++ /dev/null @@ -1,18 +0,0 @@ -function foo(...args) { - "use strict" -} - -class A { - m() { - "use strict" - - var v = () => { - return this.n(); - }; - } - n() {} -} - -function bar(x: number = 10) { - "use strict" -} \ No newline at end of file