We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a10179e commit fa9afb3Copy full SHA for fa9afb3
test/sanity/issue4018-vm-crash/bug.js
@@ -1,6 +1,6 @@
1
window.onload = function() {
2
var vm = require('vm');
3
var c = new vm.createContext({e: document.body});
4
- var script = new vm.Script('e.innerHTML += "<p id=\'ret\'>success</p>"');
+ var script = new vm.Script('e.style.background = "#4682B4"; e.innerHTML += "<p id=\'ret\'>success</p>"');
5
script.runInContext(c);
6
};
0 commit comments