es.object.to-string.js 380 B

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