Skip to content

Commit

Permalink
fix: typo in RawSource error message
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Jan 13, 2024
2 parents 9f98066 + cdb8e42 commit d126d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RawSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class RawSource extends Source {
super();
const isBuffer = Buffer.isBuffer(value);
if (!isBuffer && typeof value !== "string") {
throw new TypeError("argument 'value' must be either string of Buffer");
throw new TypeError("argument 'value' must be either string or Buffer");
}
this._valueIsBuffer = !convertToString && isBuffer;
this._value = convertToString && isBuffer ? undefined : value;
Expand Down

0 comments on commit d126d41

Please sign in to comment.