Files
node/src
Myles Borins 4897f94ec6 node_contextify: do not incept debug context
Currently a debug context is created for various calls to util.

If the node debugger is being run the main context is the debug
context. In this case node_contextify was freeing the debug context
and causing everything to explode.

This change moves around the logic and no longer frees the context.

There is a concern about the dangling pointer

The regression test was adapted from code submitted by @3y3 in #4815

Fixes: https://github.com/nodejs/node/issues/4440
Fixes: https://github.com/nodejs/node/issues/4815
Fixes: https://github.com/nodejs/node/issues/4597
Fixes: https://github.com/nodejs/node/issues/4952

PR-URL: https://github.com/nodejs/node/issues/4815

Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2016-02-05 15:40:56 -08:00
..
2016-02-03 01:04:31 +01:00
2015-12-03 21:24:05 -05:00
2016-02-03 01:04:31 +01:00
2015-09-17 15:25:14 -05:00
2015-09-17 15:25:14 -05:00
2015-08-20 01:14:37 -07:00
2016-02-03 01:04:31 +01:00
2012-02-03 14:07:32 +00:00
2016-02-04 13:43:15 -06:00
2015-02-02 21:55:56 +01:00
2015-09-17 15:25:14 -05:00
2015-09-17 15:25:14 -05:00
2015-12-15 16:37:10 +01:00