Skip to content

Commit

Permalink
Disallow use of Promise within sandboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheeo authored Jan 10, 2017
1 parent 66f0b58 commit 09acab5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/runtime-user-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -35,4 +36,4 @@ exports.clearAll = function() {
}
globals = {};
timestamps = {};
};
};

0 comments on commit 09acab5

Please sign in to comment.