Skip to content

Commit

Permalink
fix(api/internal/promise.js): allow callsite symbol properties to be …
Browse files Browse the repository at this point in the history
…configurable
  • Loading branch information
jwerle committed Oct 2, 2024
1 parent f5bca93 commit 6c8cc77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/internal/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ Promise.all = function (iterable) {
return promise.catch((err) => {
return Promise.reject(Object.defineProperties(err, {
[Symbol.for('socket.runtime.CallSite.PromiseElementIndex')]: {
configurable: false,
configurable: true,
enumerable: false,
writable: false,
value: index
},

[Symbol.for('socket.runtime.CallSite.PromiseAll')]: {
configurable: false,
configurable: true,
enumerable: false,
writable: false,
value: true
Expand All @@ -104,14 +104,14 @@ Promise.any = function (iterable) {
return promise.catch((err) => {
return Promise.reject(Object.defineProperties(err, {
[Symbol.for('socket.runtime.CallSite.PromiseElementIndex')]: {
configurable: false,
configurable: true,
enumerable: false,
writable: false,
value: index
},

[Symbol.for('socket.runtime.CallSite.PromiseAny')]: {
configurable: false,
configurable: true,
enumerable: false,
writable: false,
value: true
Expand Down

0 comments on commit 6c8cc77

Please sign in to comment.