Skip to content

Commit

Permalink
fix usage of vm.Script()
Browse files Browse the repository at this point in the history
  • Loading branch information
patlux committed Jan 21, 2024
1 parent f83174c commit 2890708
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ module.exports = function(RED) {
iniOpt.breakOnSigint = true;
}
}
node.script = new vm.Script(functionText, {filename: createVMOpt(node, "")});
node.script = new vm.Script(functionText, createVMOpt(node, ""));
if (node.fin && (node.fin !== "")) {
var finText = `(function () {
var node = {
Expand Down

0 comments on commit 2890708

Please sign in to comment.