joyent/node — pull request #6232 by indutny (2013-09-14 17:06:43+00:00)
Title: contextify: fix ContextifyContext leak

Apparently, context->Global() won't be destroyed if the context itself
isn't marked as weak and independent.

Also, the weakness flag should be cleared once the weak callback is
executed, otherwise we'll get crashes in Debug builds.

NOTE: WIP, going to add test and more commits here