[Pkg-javascript-commits] [node-acorn-jsx] 238/484: Updated README and bin utility to be aware of ES6 support.
Bastien Roucariès
rouca at moszumanska.debian.org
Sat Aug 19 14:20:37 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 a061f1f0a63624b66b115aacbd4d39ca13aa7b3b
Author: Ingvar Stepanyan <me at rreverser.com>
Date: Sat Jul 26 07:37:59 2014 +0300
Updated README and bin utility to be aware of ES6 support.
---
README.md | 3 +--
bin/acorn | 3 ++-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index e50d98e..6d5398c 100644
--- a/README.md
+++ b/README.md
@@ -50,8 +50,7 @@ object referring to that same position.
- **ecmaVersion**: Indicates the ECMAScript version to parse. Must be
either 3, 5, or 6. This influences support for strict mode, the set
- of reserved words, and support for getters and setter. Default is 5.
- ES6 is only partially supported.
+ of reserved words, and support for new syntax features. Default is 5.
- **strictSemicolons**: If `true`, prevents the parser from doing
automatic semicolon insertion, and statements that do not end with
diff --git a/bin/acorn b/bin/acorn
index d5e5e3a..2a226da 100755
--- a/bin/acorn
+++ b/bin/acorn
@@ -8,7 +8,7 @@ var infile, parsed, options = {}, silent = false, compact = false;
function help(status) {
var print = (status == 0) ? console.log : console.error;
- print("usage: " + path.basename(process.argv[1]) + " [--ecma3|--ecma5] [--strictSemicolons]");
+ print("usage: " + path.basename(process.argv[1]) + " [--ecma3|--ecma5|--ecma6] [--strictSemicolons]");
print(" [--locations] [--compact] [--silent] [--help] [--] infile");
process.exit(status);
}
@@ -19,6 +19,7 @@ for (var i = 2; i < process.argv.length; ++i) {
else if (arg == "--" && !infile && i + 2 == process.argv.length) infile = process.argv[++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 == "--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