Skip to content

Commit 33c4c7f

Browse files
IamLizuljharb
andauthored
fix: use string concatenation for error message to improve cross-environment compatibility
Co-authored-by: Jordan Harband <[email protected]>
1 parent fc13250 commit 33c4c7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var parseValues = function parseQueryStringValues(str, options) {
6767

6868
// Check if parts exceed the parameter limit and handle it
6969
if (options.throwOnLimitExceeded && parts.length > limit) {
70-
throw new Error(`Parameter limit exceeded. Only ${limit} parameters allowed.`);
70+
throw new Error('Parameter limit exceeded. Only ' + limit + ' parameters allowed.');
7171
}
7272

7373
var skipIndex = -1; // Keep track of where the utf8 sentinel was found

0 commit comments

Comments
 (0)