test: bug repro for vm function redefinition
authorcjihrig <cjihrig@gmail.com>
Wed, 2 Mar 2016 17:41:46 +0000 (12:41 -0500)
committerMyles Borins <mborins@us.ibm.com>
Mon, 21 Mar 2016 20:07:10 +0000 (13:07 -0700)
commit9952bcf203d21988dc58f1a0f27bda7bef3b6f78
tree83ec4f4cc83103245558b4c73fcbcfeed62aac58
parent7501ddc878cb1cb3471a6247e858596ed4555f98
test: bug repro for vm function redefinition

This commit adds a failing test case for the vm module.
Currently, if runInContext() defines a function, and a later call
to runInContext() redefines the same function, the original
function is not overwritten.

Refs: https://github.com/nodejs/node/issues/548
Backport-URL: https://github.com/nodejs/node/pull/5785
PR-URL: https://github.com/nodejs/node/pull/5528
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
test/known_issues/test-vm-function-redefinition.js [new file with mode: 0644]