UNPKG

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