UNPKG

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