monkeypatch in acorn instead of esprima - immediately fixes #38, fixes #67 @thejameskyle

This commit is contained in:
Sebastian McKenzie
2014-10-19 13:21:56 +11:00
parent 5bc4dfc14c
commit 1f274a3b95
11 changed files with 60 additions and 18 deletions

View File

@@ -1 +0,0 @@
var arr = [for (i in [1, 2, 3]) i * i];

View File

@@ -1,3 +0,0 @@
{
"throws": "for-in array comprehension is not supported"
}

View File

@@ -0,0 +1,5 @@
var some = (count = "30") => {
console.log("count", count);
};
some();

View File

@@ -0,0 +1,8 @@
"use strict";
var some = function (count) {
if (count === undefined) count = "30";
console.log("count", count);
};
some();

View File

@@ -0,0 +1,2 @@
var a = ({ target }) => console.log(target);
a({ target: "I am a target" });

View 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" });

View File

@@ -1,3 +1,3 @@
{
"throws": "Line 2: Unexpected token ILLEGAL"
"throws": "Unexpected character '@'"
}