mirror of https://github.com/node-red/node-red.git
fix use of vm.Script by adding new
parent
ec062d008f
commit
f83174c40a
|
@ -374,7 +374,7 @@ module.exports = function(RED) {
|
|||
iniOpt.breakOnSigint = true;
|
||||
}
|
||||
}
|
||||
node.script = vm.Script(functionText, {filename: createVMOpt(node, "")});
|
||||
node.script = new vm.Script(functionText, {filename: createVMOpt(node, "")});
|
||||
if (node.fin && (node.fin !== "")) {
|
||||
var finText = `(function () {
|
||||
var node = {
|
||||
|
|
Loading…
Reference in New Issue