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:
parent
9f0b3eba47
commit
529a691e1d
@ -86,7 +86,8 @@ module.exports = function(RED) {
|
|||||||
context: {
|
context: {
|
||||||
global:RED.settings.functionGlobalContext || {}
|
global:RED.settings.functionGlobalContext || {}
|
||||||
},
|
},
|
||||||
setTimeout: setTimeout
|
setTimeout: setTimeout,
|
||||||
|
clearTimeout: clearTimeout
|
||||||
};
|
};
|
||||||
var context = vm.createContext(sandbox);
|
var context = vm.createContext(sandbox);
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user