This commit is contained in:
@@ -1 +0,0 @@
|
||||
var arr = [for (i in [1, 2, 3]) i * i];
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "for-in array comprehension is not supported"
|
||||
}
|
||||
5
test/fixtures/syntax/arrow-functions/default-parameters/actual.js
vendored
Normal file
5
test/fixtures/syntax/arrow-functions/default-parameters/actual.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var some = (count = "30") => {
|
||||
console.log("count", count);
|
||||
};
|
||||
|
||||
some();
|
||||
8
test/fixtures/syntax/arrow-functions/default-parameters/expected.js
vendored
Normal file
8
test/fixtures/syntax/arrow-functions/default-parameters/expected.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
var some = function (count) {
|
||||
if (count === undefined) count = "30";
|
||||
console.log("count", count);
|
||||
};
|
||||
|
||||
some();
|
||||
2
test/fixtures/syntax/arrow-functions/destructuring-parameters/actual.js
vendored
Normal file
2
test/fixtures/syntax/arrow-functions/destructuring-parameters/actual.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
var a = ({ target }) => console.log(target);
|
||||
a({ target: "I am a target" });
|
||||
6
test/fixtures/syntax/arrow-functions/destructuring-parameters/expected.js
vendored
Normal file
6
test/fixtures/syntax/arrow-functions/destructuring-parameters/expected.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
var a = function (_ref) {
|
||||
var target = _ref.target;
|
||||
return console.log(target);
|
||||
};
|
||||
a({ target: "I am a target" });
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Line 2: Unexpected token ILLEGAL"
|
||||
"throws": "Unexpected character '@'"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user