From af7d8c58d10b294e07cdc4b7158282af346a976a Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Mon, 13 Feb 2012 20:18:01 +0000 Subject: [PATCH] use sandbox module for running untrusted code because it has a timeout --- modules/js.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/js.js b/modules/js.js index 6069b0c..9fcea62 100644 --- a/modules/js.js +++ b/modules/js.js @@ -1,9 +1,8 @@ var vm = require('vm'); -var sandbox = require('sandbox'); +var s = require('sandbox'); var js = function(dbot) { var dbot = dbot; - var s = new Sandbox(); var commands = { '~js': function(data, params) {