Skip to content

Commit

Permalink
Merge pull request #4534 from patlux/master
Browse files Browse the repository at this point in the history
Replacing vm.createScript in favour of vm.Script
  • Loading branch information
knolleary committed May 9, 2024
2 parents 08927df + 2890708 commit 1bb3a0e
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 = vm.createScript(functionText, 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 1bb3a0e

Please sign in to comment.