browserify / http-browserify

node's http module, but for the browser
MIT License
244 stars 110 forks source link

defer detection of XHR #76

Closed kirbysayshi closed 3 years ago

kirbysayshi commented 9 years ago

Ran into an issue with a tape-like pattern:

$ browserify-like-bundler tests/index.js | node

This package was detecting if the window object was present before my jsdom shim could execute (and therefore expose window/document globals). I deferred the execution of the detection until the first call to compensate.