fix test discrepancies

This commit is contained in:
Sebastian McKenzie
2014-10-01 11:02:30 +10:00
parent 05c037d2d4
commit 444c0d4532
7 changed files with 26 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
var Test = function () {
function Test() {
arr.map(x => x * x);
}
return Test;
function Test() {
arr.map(x => x * x);
}
return Test;
}();

View File

@@ -1,5 +1,5 @@
var obj = {
[foobar]() {
return "foobar"
return "foobar";
}
};

View File

@@ -1,6 +1,6 @@
var obj = function (obj) {
obj[foobar] = function () {
return 'foobar';
};
return obj;
obj[foobar] = function () {
return "foobar";
};
return obj;
}({});

View File

@@ -1,3 +1,7 @@
var t = function (f, ...items) {
};
function t(f, ...items) {
}

View File

@@ -1,3 +1,7 @@
var t = function (f) {
var items = Array.prototype.slice.call(arguments, 1);
};
function t(f) {
var items = Array.prototype.slice.call(arguments, 1);
}

View File

@@ -1,3 +1,7 @@
var t = function (...items) {
};
}
function t(...items) {
}

View File

@@ -1,3 +1,7 @@
var t = function () {
var items = Array.prototype.slice.call(arguments);
};
function t() {
var items = Array.prototype.slice.call(arguments);
}