fix up test styling and add use-strict declarator

This commit is contained in:
Sebastian McKenzie
2014-10-18 15:42:36 +11:00
parent 6c48e6cd66
commit dcaea68240
198 changed files with 697 additions and 447 deletions

View File

@@ -1,3 +1,5 @@
"use strict";
var t = function(x) {
return x * x;
};
};

View File

@@ -1,10 +1,10 @@
[{
"original": {
"line": 1,
"column": 15
"column": 18
},
"generated": {
"line": 2,
"column": 11
"line": 4,
"column": 14
}
}]

View File

@@ -1,3 +1,5 @@
"use strict";
var Test = function() {
var Test = function Test() {};
@@ -12,5 +14,5 @@ var Test = function() {
return Test;
}();
var test = new Test;
test.bar;
var test = new Test();
test.bar;

View File

@@ -4,7 +4,7 @@
"column": 11
},
"generated": {
"line": 7,
"line": 9,
"column": 15
}
}]

View File

@@ -1,3 +1,5 @@
arr.map(function (x) {
"use strict";
arr.map(function(x) {
return x * x;
});
});

View File

@@ -3,6 +3,6 @@
"file": "source-maps/full/expected.js",
"sources": ["source-maps/full/actual.js"],
"names": [],
"mappings": "AAAA,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAC;SAAK,EAAE,EAAE;CAAC,CAAC",
"mappings": ";AAAA,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAC;SAAK,EAAE,EAAE;CAAC,CAAC",
"sourcesContent": ["arr.map(x => x * x);"]
}

View File

@@ -1,3 +1,5 @@
arr.map(function (x) {
"use strict";
arr.map(function(x) {
return x * x;
});
});