You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
411 B

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