1 | var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');
|
2 | var redefine = require('../internals/redefine');
|
3 | var toString = require('../internals/object-to-string');
|
4 |
|
5 | // `Object.prototype.toString` method
|
6 | // https://tc39.es/ecma262/#sec-object.prototype.tostring
|
7 | if (!TO_STRING_TAG_SUPPORT) {
|
8 | redefine(Object.prototype, 'toString', toString, { unsafe: true });
|
9 | }
|