[Pkg-javascript-commits] [node-browser-pack] 44/141: Bind `this` to `exports` Closes upstream Browserify issue https://github.com/substack/node-browserify/issues/372

Bastien Roucariès rouca at moszumanska.debian.org
Thu May 4 10:23:23 UTC 2017


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

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

commit 22fe34b059fbbf2d1f77b04c1b58262b24bc5bee
Author: Esa-Matti Suuronen <esa-matti at suuronen.org>
Date:   Sat Apr 6 21:22:38 2013 +0300

    Bind `this` to `exports`
    Closes upstream Browserify issue
    https://github.com/substack/node-browserify/issues/372
---
 prelude.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/prelude.js b/prelude.js
index 8d2e921..ae8e72f 100644
--- a/prelude.js
+++ b/prelude.js
@@ -28,7 +28,7 @@
                 throw new Error('Cannot find module \'' + name + '\'');
             }
             var m = cache[name] = {exports:{}};
-            modules[name][0](function(x){
+            modules[name][0].call(m.exports, function(x){
                 var id = modules[name][1][x];
                 return newRequire(id ? id : x);
             },m,m.exports);

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



More information about the Pkg-javascript-commits mailing list