diff -u b/core/misc/drupal.js b/core/misc/drupal.js --- b/core/misc/drupal.js +++ b/core/misc/drupal.js @@ -53,11 +53,11 @@ /** * Helper to rethrow errors asynchronously. * - * This way Exceptions bubbles up outside of the original callstack, making + * This way Errors bubbles up outside of the original callstack, making it * easier to debug errors in the browser. * - * @param {error} error - * An exception object. + * @param {Error|string} error + * The error to be thrown. */ Drupal.throwError = function (error) { setTimeout(function () { throw error; }, 0);