debian-mirror-gitlab/core-js/internals/object-to-string.js

10 lines
378 B
JavaScript
Raw Normal View History

2019-09-25 13:30:05 +05:30
'use strict';
2019-12-04 20:38:33 +05:30
var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');
2019-09-25 13:30:05 +05:30
var classof = require('../internals/classof');
// `Object.prototype.toString` method implementation
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
2019-12-04 20:38:33 +05:30
module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
2019-09-25 13:30:05 +05:30
return '[object ' + classof(this) + ']';
2019-12-04 20:38:33 +05:30
};