emit prologue directives as first lines in file

This commit is contained in:
Vladimir Matveev
2014-07-17 17:43:48 -07:00
parent b9372a1aa2
commit 4068404cd4
3 changed files with 31 additions and 10 deletions

View File

@@ -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() {
}

View File

@@ -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() {
}