Skip to content

Commit

Permalink
Fixed the length
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Nov 21, 2023
1 parent e6c515b commit eb62704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion esm/shared/thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default name => {

const global = new Proxy(pair(OBJECT, null), proxyHandler);

// this is needed to avoid confusion when new Proxy({type, value})
// this is needed to avoid confusion when Proxy of {type, value}
// passes through `isArray` check, as that would return always true
// by specs and there's no Proxy trap to avoid it.
const remoteArray = global.Array[isArray];
Expand Down
1 change: 1 addition & 0 deletions test/issue-34/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const { window } = coincident(self);

const { array, object } = window;

console.log(Array.isArray(array));
console.log(Object.keys(array), [...array]);
array.push(4);
console.log(Object.keys(array), [...array]);
Expand Down

0 comments on commit eb62704

Please sign in to comment.