We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a0156d commit 70724e3Copy full SHA for 70724e3
test/ng/logSpec.js
@@ -144,14 +144,17 @@ describe('$log', function() {
144
describe('$log.error', function() {
145
var e, $log, errorArgs;
146
147
+ function TestErrorPrototype() {}
148
+ TestErrorPrototype.prototype = Error.prototype;
149
+
150
function TestError() {
151
Error.prototype.constructor.apply(this, arguments);
152
this.message = undefined;
153
this.sourceURL = undefined;
154
this.line = undefined;
155
this.stack = undefined;
156
}
- TestError.prototype = Object.create(Error.prototype);
157
+ TestError.prototype = new TestErrorPrototype();
158
TestError.prototype.constructor = TestError;
159
160
beforeEach(function() {
0 commit comments