Skip to content

Commit 448ee0c

Browse files
committed
fix return value of Object.defineProperty in Symbol polyfill in Android ~ 2
1 parent c6b913b commit 448ee0c

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
@@ -32,6 +32,7 @@
3232
- Fixed a lack of error in `structuredClone` polyfill on attempt to transfer multiple objects, some of which are non-transferable
3333
- Fixed resizable `ArrayBuffer` transferring where `newByteLength` exceeds the original `maxByteLength`
3434
- Fixed possible loss of symbol enumerability in `Object.defineProperty` in `Symbol` polyfill
35+
- Fixed return value of `Object.defineProperty` in `Symbol` polyfill in Android ~ 2
3536
- Fixed order of `%TypedArray%.from` arguments validation
3637
- Fixed a lack of error on passing an `ArrayBuffer` and a negative length to the `%TypedArray%` constructor polyfill
3738
- Fixed some cases of `ToUint8Clamp` conversion

packages/core-js/modules/es.symbol.constructor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var fallbackDefineProperty = function (O, P, Attributes) {
7070
nativeDefineProperty(O, P, Attributes);
7171
if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
7272
nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
73-
}
73+
} return O;
7474
};
7575

7676
var setSymbolDescriptor = DESCRIPTORS && fails(function () {

0 commit comments

Comments
 (0)