Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
380 bytes
|
Line | |
---|
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 |
|
---|
5 | // `Object.prototype.toString` method
|
---|
6 | // https://tc39.es/ecma262/#sec-object.prototype.tostring
|
---|
7 | if (!TO_STRING_TAG_SUPPORT) {
|
---|
8 | redefine(Object.prototype, 'toString', toString, { unsafe: true });
|
---|
9 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.