Skip to content
assert that an object will vanish
CoffeeScript JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
Cakefile
LICENSE
README.md
index.coffee
index.js
package.json
test.coffee
test.js
test2.coffee
test2.js
weakpointer.coffee
weakpointer.js

README.md

How to use it

For a code example, see test.js and test.coffee.

To activate vanish assertions, you have to call node with --expose-debug-as=debug.

node --expose-debug-as=debug test.js

Example output:

'Object ({})' (type 'Object') is still alive!
Object ({})
  Array ({'0': [REFERENCE]})
    Function without a name from /home/jann/gitty/node-assertvanish/test.js:16
      Timer ({'repeat': 1, 'callback': [REFERENCE], 'start': [function "start"], 'stop': [function "stop"], 'again': [function "again"]})

/home/jann/gitty/node-assertvanish/index.js:19
        throw "unfullfilled vanish assertion";
        ^
unfullfilled vanish assertion

Compiling

cake build
Something went wrong with that request. Please try again.