Skip to content

Commit

Permalink
[Fix] improve assertion message
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 16, 2022
1 parent 36eb820 commit 8df86e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var SLOT = {
}
channel.assert(O);
if (!SLOT.has(O, slot)) {
throw new $TypeError('`slot` is not present on `O`');
throw new $TypeError('`' + slot + '` is not present on `O`');
}
},
get: function (O, slot) {
Expand Down

0 comments on commit 8df86e3

Please sign in to comment.