Skip to content

Commit fa9afb3

Browse files
committed
[test fix vm crash case
1 parent a10179e commit fa9afb3

File tree

1 file changed

+1
-1
lines changed
  • test/sanity/issue4018-vm-crash

1 file changed

+1
-1
lines changed

test/sanity/issue4018-vm-crash/bug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
window.onload = function() {
22
var vm = require('vm');
33
var c = new vm.createContext({e: document.body});
4-
var script = new vm.Script('e.innerHTML += "<p id=\'ret\'>success</p>"');
4+
var script = new vm.Script('e.style.background = "#4682B4"; e.innerHTML += "<p id=\'ret\'>success</p>"');
55
script.runInContext(c);
66
};

0 commit comments

Comments
 (0)