10 lines
367 B
JavaScript
10 lines
367 B
JavaScript
var redefine = require('../internals/redefine');
|
|
var toString = require('../internals/object-to-string');
|
|
|
|
var ObjectPrototype = Object.prototype;
|
|
|
|
// `Object.prototype.toString` method
|
|
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
|
|
if (toString !== ObjectPrototype.toString) {
|
|
redefine(ObjectPrototype, 'toString', toString, { unsafe: true });
|
|
}
|