blob: a8d2db82a54d17b29f6d61ab24125f03378eda56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// add exported things to global again, run this after all node modules
/*
var h$glbl = this;
for(p in exports) {
// console.log("exporting: " + p);
// console.log("type: " + (typeof this[p]));
if(typeof this[p] === 'undefined') {
h$glbl[p] = exports[p];
}
}
*/
if(typeof exports !== 'undefined') {
if(typeof WeakMap === 'undefined' && typeof global !== 'undefined') {
global.WeakMap = exports.WeakMap;
}
// var Map = exports.Map;
// var Set = exports.Set;
}
|