Sha256: 5b660472c823808bf12f6a0a2f594a82b5ee7b8febc76627d1f331c3e993f7d7

Contents?: true

Size: 716 Bytes

Versions: 40

Compression:

Stored size: 716 Bytes

Contents

getJasmineRequireObj().ExceptionFormatter = function() {
  function ExceptionFormatter() {
    this.message = function(error) {
      var message = '';

      if (error.name && error.message) {
        message += error.name + ': ' + error.message;
      } else {
        message += error.toString() + ' thrown';
      }

      if (error.fileName || error.sourceURL) {
        message += ' in ' + (error.fileName || error.sourceURL);
      }

      if (error.line || error.lineNumber) {
        message += ' (line ' + (error.line || error.lineNumber) + ')';
      }

      return message;
    };

    this.stack = function(error) {
      return error ? error.stack : null;
    };
  }

  return ExceptionFormatter;
};

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/bootstrap-tagsinput/lib/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.11.0 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.10.5 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.10.4 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.10.3 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.10.2 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.10.1 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.10.0 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.9.1 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.9.0 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.8.2 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.8.1 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.8.0 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.7.8 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.7.7 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.7.6 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.7.5 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.7.4 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.7.3 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js
upjs-rails-0.7.2 spec_app/vendor/assets/bower_components/jasmine/src/core/ExceptionFormatter.js