You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
228 B
JavaScript

var isNode = typeof module !== 'undefined' && module.exports;
if (isNode) {
process.once('message', function (code) {
eval(JSON.parse(code).data);
});
} else {
self.onmessage = function (code) {
eval(code.data);
};
}