Sha256: 609a6ac209efe1dcdbd3520bfc0c18889a03bfffcf7f0234d30233805e49a4ff
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
/** A subclass of the JavaScript Error object for use in Ember. @class Error @namespace Ember @extends Error @constructor @public */ export default function EmberError(message) { if (!(this instanceof EmberError)) { return new EmberError(message); } let error = Error.call(this, message); this.stack = error.stack; this.description = error.description; this.fileName = error.fileName; this.lineNumber = error.lineNumber; this.message = error.message; this.name = error.name; this.number = error.number; this.code = error.code; } EmberError.prototype = Object.create(Error.prototype); EmberError.prototype.constructor = EmberError;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
discourse-ember-source-3.6.0.0 | dist/es/@ember/error/index.js |