Skip to content

Commit 0afe09a

Browse files
committed
ignore global symbol
1 parent 6b20490 commit 0afe09a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/Handle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class HandleStore extends BaseArrayStore<any> {
2727
for (let i = start; i < end; ++i) {
2828
const value = this._values[i]
2929
const type = typeof value
30-
if ((type === 'object' && value !== null) || type === 'symbol') {
30+
if ((type === 'object' && value !== null) || (type === 'symbol' && Symbol.keyFor(value) === undefined)) {
3131
this._values[i] = new WeakRef(value)
3232
}
3333
}

0 commit comments

Comments
 (0)