[Pkg-javascript-commits] [node-detective] 115/119: ecma version 8

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 09:44:41 UTC 2017


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

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

commit 9d0eb013ac3bb262b36dbbb53560cdca948b2fa5
Author: substack <substack at 9nTgtYmvW4HID6ayt6Icwc8WZxdifx5SlSKKIX/X/1g=.ed25519>
Date:   Wed Mar 1 12:49:52 2017 -1000

    ecma version 8
---
 index.js        | 2 +-
 readme.markdown | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 2ab6395..938f86f 100644
--- a/index.js
+++ b/index.js
@@ -7,7 +7,7 @@ var requireRe = /\brequire\b/;
 function parse (src, opts) {
     if (!opts) opts = {};
     return acorn.parse(src, {
-        ecmaVersion: defined(opts.ecmaVersion, 6),
+        ecmaVersion: defined(opts.ecmaVersion, 8),
         sourceType: opts.sourceType,
         ranges: defined(opts.ranges, opts.range),
         locations: defined(opts.locations, opts.loc),
diff --git a/readme.markdown b/readme.markdown
index 0cdd59f..d760c4c 100644
--- a/readme.markdown
+++ b/readme.markdown
@@ -66,6 +66,7 @@ node is a require call
 * `opts.parse` - supply options directly to
 [acorn](https://npmjs.org/package/acorn) with some support for esprima-style
 options `range` and `loc`
+* `opts.ecmaVersion` - default: 8
 
 # install
 

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



More information about the Pkg-javascript-commits mailing list