Commit 97f1921
committed
Fix ES2021 WeakRef and FinalizationRegistry symbol support
- Update isValidTarget() in NativeWeakRef to accept Symbol targets
- Update isValidTarget() and canBeHeldWeakly() in NativeFinalizationRegistry to accept Symbols
- Addresses test262 failures for symbols-as-weakmap-keys feature
- Improves compliance with ES2021 specification requiring symbol support
Fixes major category of test262 failures including:
- built-ins/WeakRef/prototype/deref/return-symbol-target.js
- built-ins/FinalizationRegistry/prototype/register/throws-when-unregisterToken-not-undefined-and-cannot-be-held-weakly.js1 parent 50ca74a commit 97f1921
File tree
2 files changed
+3
-3
lines changed- rhino/src/main/java/org/mozilla/javascript
2 files changed
+3
-3
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
0 commit comments