fix up test styling and add use-strict declarator
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var t = function(x) {
|
||||
return x * x;
|
||||
};
|
||||
};
|
||||
@@ -1,10 +1,10 @@
|
||||
[{
|
||||
"original": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
"column": 18
|
||||
},
|
||||
"generated": {
|
||||
"line": 2,
|
||||
"column": 11
|
||||
"line": 4,
|
||||
"column": 14
|
||||
}
|
||||
}]
|
||||
|
||||
@@ -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;
|
||||
@@ -4,7 +4,7 @@
|
||||
"column": 11
|
||||
},
|
||||
"generated": {
|
||||
"line": 7,
|
||||
"line": 9,
|
||||
"column": 15
|
||||
}
|
||||
}]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
arr.map(function (x) {
|
||||
"use strict";
|
||||
|
||||
arr.map(function(x) {
|
||||
return x * x;
|
||||
});
|
||||
});
|
||||
@@ -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);"]
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
arr.map(function (x) {
|
||||
"use strict";
|
||||
|
||||
arr.map(function(x) {
|
||||
return x * x;
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user