main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 2 weeks ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
385 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var defineBuiltIn = require('../internals/define-built-in');
|
---|
3 | var errorToString = require('../internals/error-to-string');
|
---|
4 |
|
---|
5 | var ErrorPrototype = Error.prototype;
|
---|
6 |
|
---|
7 | // `Error.prototype.toString` method fix
|
---|
8 | // https://tc39.es/ecma262/#sec-error.prototype.tostring
|
---|
9 | if (ErrorPrototype.toString !== errorToString) {
|
---|
10 | defineBuiltIn(ErrorPrototype, 'toString', errorToString);
|
---|
11 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.