From 4d8400f463a342ca9a3445113ab8ecc14f42fb09 Mon Sep 17 00:00:00 2001 From: Toru Nagashima Date: Mon, 13 Jun 2016 06:26:18 +0900 Subject: [PATCH] Upgrade: acorn 3.2.0 (fixes #279) --- package.json | 2 +- .../shorthand-properties-keyword.result.js | 6 ++++++ .../shorthand-properties-keyword.src.js | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 tests/fixtures/ecma-version/6/objectLiteralShorthandProperties/shorthand-properties-keyword.result.js create mode 100644 tests/fixtures/ecma-version/6/objectLiteralShorthandProperties/shorthand-properties-keyword.src.js diff --git a/package.json b/package.json index 16d98f3a..134f1432 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "license": "BSD-2-Clause", "dependencies": { - "acorn": "^3.1.0", + "acorn": "^3.2.0", "acorn-jsx": "^3.0.0" }, "devDependencies": { diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandProperties/shorthand-properties-keyword.result.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandProperties/shorthand-properties-keyword.result.js new file mode 100644 index 00000000..47911f77 --- /dev/null +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandProperties/shorthand-properties-keyword.result.js @@ -0,0 +1,6 @@ +module.exports = { + "index": 14, + "lineNumber": 2, + "column": 5, + "message": "'this' can not be used as shorthand property" +}; \ No newline at end of file diff --git a/tests/fixtures/ecma-version/6/objectLiteralShorthandProperties/shorthand-properties-keyword.src.js b/tests/fixtures/ecma-version/6/objectLiteralShorthandProperties/shorthand-properties-keyword.src.js new file mode 100644 index 00000000..21142d4b --- /dev/null +++ b/tests/fixtures/ecma-version/6/objectLiteralShorthandProperties/shorthand-properties-keyword.src.js @@ -0,0 +1,3 @@ +var x = { + this +};