From 09acab5758b0d82ff9d6473bad5e58e7baca605a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20S=C3=B8ndergaard?= Date: Tue, 10 Jan 2017 17:49:56 +0100 Subject: [PATCH] Disallow use of Promise within sandboxes --- lib/runtime-user-globals.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/runtime-user-globals.js b/lib/runtime-user-globals.js index 5ba4af0..7c53ff4 100644 --- a/lib/runtime-user-globals.js +++ b/lib/runtime-user-globals.js @@ -14,6 +14,7 @@ exports.init = function(userId, data) { _.extend(globals[userId], data); } globals[userId].gc = undefined; + globals[userId].Promise = undefined; }; exports.get = function(userId) { @@ -35,4 +36,4 @@ exports.clearAll = function() { } globals = {}; timestamps = {}; -}; \ No newline at end of file +};