[Pkg-javascript-commits] [node-acorn-jsx] 44/484: Upgrade Esprima

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:02 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 93d4a31abb9d93a79a24d756899da872196cce1a
Author: Marijn Haverbeke <marijnh at gmail.com>
Date:   Fri Oct 19 10:31:55 2012 +0200

    Upgrade Esprima
---
 test/compare/esprima.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/compare/esprima.js b/test/compare/esprima.js
index 2db7379..eb60c5a 100644
--- a/test/compare/esprima.js
+++ b/test/compare/esprima.js
@@ -37,19 +37,19 @@ parseFunctionSourceElements: true, parseVariableIdentifier: true,
 parseLeftHandSideExpression: true,
 parseStatement: true, parseSourceElement: true */
 
-(function (factory) {
+(function (root, factory) {
     'use strict';
 
     // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js,
-    // and plain browser loading,
+    // Rhino, and plain browser loading.
     if (typeof define === 'function' && define.amd) {
         define(['exports'], factory);
     } else if (typeof exports !== 'undefined') {
         factory(exports);
     } else {
-        factory((window.esprima = {}));
+        factory((root.esprima = {}));
     }
-}(function (exports) {
+}(this, function (exports) {
     'use strict';
 
     var Token,

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