core-js
Version:
Standard library
9 lines (7 loc) • 341 B
JavaScript
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) {
require('../internals/redefine')(ObjectPrototype, 'toString', toString, { unsafe: true });
}