Sha256: e9e96da31e3bb2d168261a203bc1a45db1f0515bcee553ca230db877f32434c5
Contents?: true
Size: 612 Bytes
Versions: 32
Compression:
Stored size: 612 Bytes
Contents
function getStackTrace() { var stack; try { throw new Error(''); } catch (error) { stack = error.stack || ''; } stack = stack.split('\\n').map(function (line) { return line.trim(); }); return stack.splice(stack[0] == 'Error' ? 2 : 1); }; function printError(functionName){ console.error(functionName + ' is not defined for execJS. See https://github.com/sstephenson/execjs#faq. Note babel-polyfill may call this.'); console.error(getStackTrace().join('\\n')); }; function setTimeout() { printError('setTimeout'); }; function clearTimeout() { printError('clearTimeout'); };
Version data entries
32 entries across 32 versions & 1 rubygems