Commit e38e2a60 authored by cjihrig's avatar cjihrig
Browse files

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
PR-URL: https://github.com/nodejs/node/pull/5528


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarWyatt Preul <wpreul@gmail.com>
Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
parent 32e1f9d0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment