Skip to content

Instantly share code, notes, and snippets.

View mjgartendev's full-sized avatar

Michael Garten mjgartendev

View GitHub Profile
@westc
westc / Sandbox.js
Last active April 16, 2019 19:41
A JavaScript sandbox which works by using a web worker.
(function(undefined) {
var global = this;
var FUNC_PATHS = Object.keys(console).reduce(function (carry, name) {
if ('function' === typeof console[name]) {
carry.push(['console', name]);
}
return carry;
}, [['alert']]);
function WORKER_CODE() {