[Pkg-javascript-commits] [node-acorn-jsx] 386/484: Add --ecma7 option to CLI

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:21:00 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit cee56dab67b9feee11cd1b8099c59df77748b146
Author: Forbes Lindesay <forbes at lindesay.co.uk>
Date:   Tue Jan 13 18:08:33 2015 +0000

    Add --ecma7 option to CLI
---
 bin/acorn | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/acorn b/bin/acorn
index ca6e32a..b80ad29 100755
--- a/bin/acorn
+++ b/bin/acorn
@@ -20,6 +20,7 @@ for (var i = 2; i < process.argv.length; ++i) {
   else if (arg == "--ecma3") options.ecmaVersion = 3;
   else if (arg == "--ecma5") options.ecmaVersion = 5;
   else if (arg == "--ecma6") options.ecmaVersion = 6;
+  else if (arg == "--ecma7") options.ecmaVersion = 7;
   else if (arg == "--strictSemicolons") options.strictSemicolons = true;
   else if (arg == "--locations") options.locations = true;
   else if (arg == "--silent") silent = true;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git



More information about the Pkg-javascript-commits mailing list