mirror of https://github.com/node-red/node-red.git
Merge pull request #4534 from patlux/master
Replacing vm.createScript in favour of vm.Scriptpull/4702/head
commit
1bb3a0eca5
|
@ -374,7 +374,7 @@ module.exports = function(RED) {
|
|||
iniOpt.breakOnSigint = true;
|
||||
}
|
||||
}
|
||||
node.script = vm.createScript(functionText, createVMOpt(node, ""));
|
||||
node.script = new vm.Script(functionText, createVMOpt(node, ""));
|
||||
if (node.fin && (node.fin !== "")) {
|
||||
var finText = `(function () {
|
||||
var node = {
|
||||
|
|
Loading…
Reference in New Issue