[Pkg-javascript-commits] [node-browser-pack] 62/141: expose the outer, modules, cache, and entry variables to expose enough reflection for web workers

Bastien Roucariès rouca at moszumanska.debian.org
Thu May 4 10:23:25 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 02297358825bd37829694d137435d038d284f6ed
Author: James Halliday <mail at substack.net>
Date:   Fri Aug 2 15:39:21 2013 -0700

    expose the outer, modules, cache, and entry variables to expose enough reflection for web workers
---
 prelude.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/prelude.js b/prelude.js
index ae8e72f..2b7e4c3 100644
--- a/prelude.js
+++ b/prelude.js
@@ -7,7 +7,7 @@
 // anything defined in a previous bundle is accessed via the
 // orig method which is the requireuire for previous bundles
 
-(function(modules, cache, entry) {
+(function outer (modules, cache, entry) {
     // Save the require from previous bundle to this closure if any
     var previousRequire = typeof require == "function" && require;
 
@@ -31,7 +31,7 @@
             modules[name][0].call(m.exports, function(x){
                 var id = modules[name][1][x];
                 return newRequire(id ? id : x);
-            },m,m.exports);
+            },m,m.exports,outer,modules,cache,entry);
         }
         return cache[name].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