es.object.to-string.js 397 B

123456789
  1. var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');
  2. var defineBuiltIn = require('../internals/define-built-in');
  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. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  8. }