You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2019/12/18 18:13:40 UTC

[couchdb-esprima] branch 2.x created (now f1ef826)

This is an automated email from the ASF dual-hosted git repository.

davisp pushed a change to branch 2.x
in repository https://gitbox.apache.org/repos/asf/couchdb-esprima.git.


      at f1ef826  Cross-browser tests: temporarily exclude Internet Explorer 9

This branch includes the following new commits:

     new 16ef260  Fix the reference to ESTree spec (fixes #1524)
     new ab84805  Ensure that value object in literal property shorthand is deep copied
     new f1ef826  Cross-browser tests: temporarily exclude Internet Explorer 9

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb-esprima] 03/03: Cross-browser tests: temporarily exclude Internet Explorer 9

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/couchdb-esprima.git

commit f1ef826d3bab3f38df43e63e8bfd78c3ee6ef232
Author: Ariya Hidayat <ar...@gmail.com>
AuthorDate: Fri Aug 26 06:54:13 2016 -0700

    Cross-browser tests: temporarily exclude Internet Explorer 9
    
    From the most recent Sauce Labs runs, IE 9 failed to launch.
    It is either the problem with IE 9 or Windows 7 or both.
    
    Closes ghi-1531
---
 test/saucelabs-ie.conf.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/saucelabs-ie.conf.js b/test/saucelabs-ie.conf.js
index 1a2e7ae..c1cd469 100644
--- a/test/saucelabs-ie.conf.js
+++ b/test/saucelabs-ie.conf.js
@@ -14,13 +14,16 @@ module.exports = function (config) {
             browserName: 'internet explorer',
             platform: 'Windows 7',
             version: '10.0'
-        },
+        }
+
+        /*
         IE_9: {
             base: 'SauceLabs',
             browserName: 'internet explorer',
             platform: 'Windows 7',
             version: '9.0'
         }
+        */
     });
 
 }


[couchdb-esprima] 01/03: Fix the reference to ESTree spec (fixes #1524)

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/couchdb-esprima.git

commit 16ef260c092fc0c5f229a8a5fd5e47ba927f9b06
Author: Ariya Hidayat <ar...@gmail.com>
AuthorDate: Thu Aug 25 07:18:03 2016 -0700

    Fix the reference to ESTree spec (fixes #1524)
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 749454f..2a20fe0 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ with the help of [many contributors](https://github.com/jquery/esprima/contribut
 ### Features
 
 - Full support for ECMAScript 6 ([ECMA-262](http://www.ecma-international.org/publications/standards/Ecma-262.htm))
-- Sensible [syntax tree format](https://github.com/estree/estree/blob/master/spec.md) as standardized by [ESTree project](https://github.com/estree/estree)
+- Sensible [syntax tree format](https://github.com/estree/estree/blob/master/es5.md) as standardized by [ESTree project](https://github.com/estree/estree)
 - Optional tracking of syntax node location (index-based and line-column)
 - [Heavily tested](http://esprima.org/test/ci.html) (~1250 [unit tests](https://github.com/jquery/esprima/tree/master/test/fixtures) with [full code coverage](https://codecov.io/github/jquery/esprima))
 


[couchdb-esprima] 02/03: Ensure that value object in literal property shorthand is deep copied

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/couchdb-esprima.git

commit ab84805b4a1958f6af285513082af6a91ff16359
Author: Ariya Hidayat <ar...@gmail.com>
AuthorDate: Sat Aug 27 22:40:37 2016 -0700

    Ensure that value object in literal property shorthand is deep copied
    
    Fixes #1519
    Closes gh-1520
---
 esprima.js | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/esprima.js b/esprima.js
index 0cb0a93..14451be 100644
--- a/esprima.js
+++ b/esprima.js
@@ -2719,10 +2719,11 @@
     }
 
     function parsePropertyPattern(params, kind) {
-        var node = new Node(), key, keyToken, computed = match('['), init;
+        var node = new Node(), key, id, keyToken, computed = match('['), init;
         if (lookahead.type === Token.Identifier) {
             keyToken = lookahead;
             key = parseVariableIdentifier();
+            id = new WrappingNode(keyToken).finishIdentifier(keyToken.value);
             if (match('=')) {
                 params.push(keyToken);
                 lex();
@@ -2730,10 +2731,10 @@
 
                 return node.finishProperty(
                     'init', key, false,
-                    new WrappingNode(keyToken).finishAssignmentPattern(key, init), false, true);
+                    new WrappingNode(keyToken).finishAssignmentPattern(id, init), false, true);
             } else if (!match(':')) {
                 params.push(keyToken);
-                return node.finishProperty('init', key, false, key, false, true);
+                return node.finishProperty('init', key, false, id, false, true);
             }
         } else {
             key = parseObjectPropertyKey();
@@ -2994,7 +2995,7 @@
     }
 
     function parseObjectProperty(hasProto) {
-        var token = lookahead, node = new Node(), computed, key, maybeMethod, proto, value;
+        var token = lookahead, node = new Node(), computed, key, maybeMethod, proto, init, value;
 
         computed = match('[');
         if (match('*')) {
@@ -3028,14 +3029,15 @@
         }
 
         if (token.type === Token.Identifier) {
+            init = new WrappingNode(token).finishIdentifier(token.value);
             if (match('=')) {
                 firstCoverInitializedNameError = lookahead;
                 lex();
                 value = isolateCoverGrammar(parseAssignmentExpression);
                 return node.finishProperty('init', key, computed,
-                    new WrappingNode(token).finishAssignmentPattern(key, value), false, true);
+                    new WrappingNode(token).finishAssignmentPattern(init, value), false, true);
             }
-            return node.finishProperty('init', key, computed, key, false, true);
+            return node.finishProperty('init', key, computed, init, false, true);
         }
 
         throwUnexpectedToken(lookahead);