Add clearTimeout to function node sandbox

(to be a pair with setTimeout…)
This commit is contained in:
Dave Conway-Jones 2015-06-22 09:07:31 +01:00
parent 9f0b3eba47
commit 529a691e1d
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ module.exports = function(RED) {
context: {
global:RED.settings.functionGlobalContext || {}
},
setTimeout: setTimeout
setTimeout: setTimeout,
clearTimeout: clearTimeout
};
var context = vm.createContext(sandbox);
try {