Skip to content

Commit

Permalink
[Fix] helpers/assertRecord: partial revert of 87c340d; unintentiona…
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 14, 2024
1 parent d786558 commit f47d0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/assertRecord.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var predicates = {
'RegExp Record': isRegExpRecord
};

module.exports = function assertRecord(recordType, argumentName, value) {
module.exports = function assertRecord(Type, recordType, argumentName, value) {

Check warning on line 24 in helpers/assertRecord.js

View check run for this annotation

Codecov / codecov/patch

helpers/assertRecord.js#L24

Added line #L24 was not covered by tests
var predicate = predicates[recordType];
if (typeof predicate !== 'function') {
throw new $SyntaxError('unknown record type: ' + recordType);
Expand Down

0 comments on commit f47d0f8

Please sign in to comment.