Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Nov 19, 2024
1 parent c9fee28 commit 772ebce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit-global/es.object.to-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ QUnit.test('Object#toString', assert => {
if ([].entries) {
assert.same(`${ [].entries() }`, '[object Array Iterator]', 'Array Iterator -> `Array Iterator`');
}
if (GLOBAL.Set && Set.entries) {
if (GLOBAL.Set && Set.prototype.entries) {
assert.same(`${ new Set().entries() }`, '[object Set Iterator]', 'Set Iterator -> `Set Iterator`');
}
if (GLOBAL.Map && Map.entries) {
if (GLOBAL.Map && Map.prototype.entries) {
assert.same(`${ new Map().entries() }`, '[object Map Iterator]', 'Map Iterator -> `Map Iterator`');
}
assert.same(`${ Math }`, '[object Math]', 'Math -> `Math`');
Expand Down

0 comments on commit 772ebce

Please sign in to comment.