test: don't compute knownGlobals lazily
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 30 Jan 2014 12:02:58 +0000 (13:02 +0100)
committerFedor Indutny <fedor.indutny@gmail.com>
Thu, 6 Feb 2014 11:30:38 +0000 (15:30 +0400)
commit2b6e078833bf4c485f725a8c5633a3202e31868c
tree11d6d6ac4bf6d0779528aaa18111bade93c6c4fe
parent8874a317484b8865c5fbad74d3af6155994df583
test: don't compute knownGlobals lazily

Conditional globals like 'gc' should only be recognized when --expose_gc
is set.  The global.gc feature check works only when done eagerly, else
it lets through a leaked variable called 'gc'.
test/common.js
test/simple/test-common.js [new file with mode: 0644]