Commit e38e2a6
committed
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: #548
PR-URL: #5528
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent 32e1f9d commit e38e2a6Copy full SHA for e38e2a6
File tree
Expand file treeCollapse file tree
1 file changed
+11
-0
lines changedOpen diff view settings
Filter options
- test/known_issues
Expand file treeCollapse file tree
1 file changed
+11
-0
lines changedOpen diff view settings
Collapse file
test/known_issues/test-vm-function-redefinition.js
Copy file name to clipboard+11Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
0 commit comments