debian-mirror-gitlab/core-js/modules/es.object.to-string.js
2019-09-25 13:30:05 +05:30

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 });
}