Skip to content

Commit fe04540

Browse files
committed
fix increasing .size in URLSearchParams.prototype.append polyfill in IE8-
1 parent 279a949 commit fe04540

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Changelog
22
### Unreleased
3+
- Fixed increasing `.size` in `URLSearchParams.prototype.append` polyfill in IE8-
34
- Compat data improvements:
45
- Missed [Explicit Resource Management](https://github.com/tc39/proposal-explicit-resource-management) features [added in Bun 1.3.0](https://bun.com/blog/bun-v1.3#disposablestack-and-asyncdisposablestack)
56

packages/core-js/modules/web.url-search-params.constructor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ defineBuiltIns(URLSearchParamsPrototype, {
313313
var state = getInternalParamsState(this);
314314
validateArgumentsLength(arguments.length, 2);
315315
push(state.entries, { key: $toString(name), value: $toString(value) });
316-
if (!DESCRIPTORS) this.length++;
316+
if (!DESCRIPTORS) this.size++;
317317
state.updateURL();
318318
},
319319
// `URLSearchParams.prototype.delete` method

0 commit comments

Comments
 (0)