[Pkg-javascript-commits] [node-acorn-jsx] 189/484: Note partial es6 support in docs

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:24 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 55b507b71565c0d7b5e88de40c3c21093d8a859b
Author: Marijn Haverbeke <marijnh at gmail.com>
Date:   Fri Jun 6 12:11:16 2014 +0200

    Note partial es6 support in docs
---
 README.md  | 5 +++--
 acorn.js   | 6 +++---
 index.html | 6 +++---
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md
index 063029c..a56e755 100644
--- a/README.md
+++ b/README.md
@@ -47,8 +47,9 @@ object referring to that same position.
 [mozapi]: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API
 
 - **ecmaVersion**: Indicates the ECMAScript version to parse. Must be
-  either 3 or 5. This influences support for strict mode, the set of
-  reserved words, and support for getters and setter. Default is 5.
+  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.
 
 - **strictSemicolons**: If `true`, prevents the parser from doing
   automatic semicolon insertion, and statements that do not end with
diff --git a/acorn.js b/acorn.js
index 3326eab..7de370d 100644
--- a/acorn.js
+++ b/acorn.js
@@ -51,9 +51,9 @@
 
   var defaultOptions = exports.defaultOptions = {
     // `ecmaVersion` indicates the ECMAScript version to parse. Must
-    // be either 3, or 5, or 6. This
-    // influences support for strict mode, the set of reserved words,
-    // support for getters and setters and other features.
+    // be either 3, or 5, or 6. This influences support for strict
+    // mode, the set of reserved words, support for getters and
+    // setters and other features. ES6 support is only partial.
     ecmaVersion: 5,
     // Turn on `strictSemicolons` to prevent the parser from doing
     // automatic semicolon insertion.
diff --git a/index.html b/index.html
index 00c0182..187bf39 100644
--- a/index.html
+++ b/index.html
@@ -34,9 +34,9 @@ API</a>, with the caveat that the SpiderMonkey-specific syntax
     <span class="k">return</span> <span class="nx">parseTopLevel</span><span class="p">(</span><span class="nx">options</span><span class="p">.</span><span class="nx">program</span><span class="p">);</span>
   <span class="p">};</span></pre></div>             </td>           </tr>                               <tr id="section-3">             <td class="docs">               <div class="pilwrap">                 <a class="pilcrow" href="#section-3">¶</a>               </div>               <p>A second optional argument can be given to further configure
 the parser process. These options are recognized:</p>             </td>             <td class="code">               <div class="highlight"><pre>  <span class="kd">var</span> <span class="nx">defaultOptions</span> <span class="o">=</span> <span class="nx">exports</span><span class="p">.</span><span class="nx">defaultOptions</span> <span class="o">=</span> <span class="p">{</span></pre></div>             </td>           </tr>                               <tr id="section-4">             <t [...]
-be either 3, or 5, or 6. This
-influences support for strict mode, the set of reserved words,
-support for getters and setters and other features.</p>             </td>             <td class="code">               <div class="highlight"><pre>    <span class="nx">ecmaVersion</span><span class="o">:</span> <span class="mi">5</span><span class="p">,</span></pre></div>             </td>           </tr>                               <tr id="section-5">             <td class="docs">               <div class="pilwrap">                 <a class="pilcrow" href="#section-5">¶</a>        [...]
+be either 3, or 5, or 6. This influences support for strict
+mode, the set of reserved words, support for getters and
+setters and other features. ES6 support is only partial.</p>             </td>             <td class="code">               <div class="highlight"><pre>    <span class="nx">ecmaVersion</span><span class="o">:</span> <span class="mi">5</span><span class="p">,</span></pre></div>             </td>           </tr>                               <tr id="section-5">             <td class="docs">               <div class="pilwrap">                 <a class="pilcrow" href="#section-5">¶</a>   [...]
 automatic semicolon insertion.</p>             </td>             <td class="code">               <div class="highlight"><pre>    <span class="nx">strictSemicolons</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span></pre></div>             </td>           </tr>                               <tr id="section-6">             <td class="docs">               <div class="pilwrap">                 <a class="pilcrow" href="#section-6">¶</a>               </di [...]
 trailing commas in array and object literals.</p>             </td>             <td class="code">               <div class="highlight"><pre>    <span class="nx">allowTrailingCommas</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span></pre></div>             </td>           </tr>                               <tr id="section-7">             <td class="docs">               <div class="pilwrap">                 <a class="pilcrow" href="#section-7">¶</a>   [...]
 <code>forbidReserved</code> to enforce them. When this option has the

-- 
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