node-bhttp/test/test-leak.coffee

6 lines
148 B
CoffeeScript

firstCode = global.code
require "./"
secondCode = global.code
console.log global.name
console.log "Leaking global.code:", (firstCode != secondCode)