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

Version Path
react-rails-2.4.2 lib/react/server_rendering/bundle_renderer/timeout_polyfill.js
react-rails-2.4.1 lib/react/server_rendering/bundle_renderer/timeout_polyfill.js
react-rails-2.4.0 lib/react/server_rendering/bundle_renderer/timeout_polyfill.js
react-rails-2.3.1 lib/react/server_rendering/bundle_renderer/timeout_polyfill.js
react-rails-2.3.0 lib/react/server_rendering/bundle_renderer/timeout_polyfill.js
react-rails-2.2.1 lib/react/server_rendering/bundle_renderer/timeout_polyfill.js
react-rails-2.2.0 lib/react/server_rendering/bundle_renderer/timeout_polyfill.js
react-rails-2.1.0 lib/react/server_rendering/bundle_renderer/timeout_polyfill.js
react-rails-2.0.2 lib/react/server_rendering/bundle_renderer/timeout_polyfill.js
react-rails-2.0.0 lib/react/server_rendering/bundle_renderer/timeout_polyfill.js
react-rails-1.11.0 lib/react/server_rendering/sprockets_renderer/timeout_polyfill.js
react-rails-1.10.0 lib/react/server_rendering/sprockets_renderer/timeout_polyfill.js