1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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 {