UNPKG

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