mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
emit prologue directives as first lines in file
This commit is contained in:
1 parent
b9372a1aa2
commit
4068404cd4
3 files changed
+31
-10
No files matched your search
@@ -4,13 +4,13 @@ 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 __();
|
||||
};
|
||||
"use strict";
|
||||
var A = (function () {
|
||||
function A() {
|
||||
}
|
||||
|
||||
@@ -12,13 +12,13 @@ function foo() {
|
||||
}
|
||||
|
||||
//// [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 __();
|
||||
};
|
||||
"use strict";
|
||||
var A = (function () {
|
||||
function A() {
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user