Commit eb52863
committed
Fix ArrayBuffer immutable-method semantics
sliceToImmutable throws RangeError (not TypeError) when a resizable source
shrinks below the resolved end during argument coercion; transferToImmutable
coerces newLength before checking detachability so valueOf side effects are observed.1 parent 249bb27 commit eb52863
2 files changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58227 | 58227 | | |
58228 | 58228 | | |
58229 | 58229 | | |
58230 | | - | |
58231 | | - | |
| 58230 | + | |
| 58231 | + | |
| 58232 | + | |
58232 | 58233 | | |
58233 | 58234 | | |
58234 | 58235 | | |
58235 | 58236 | | |
58236 | | - | |
| 58237 | + | |
58237 | 58238 | | |
58238 | 58239 | | |
58239 | 58240 | | |
| |||
58410 | 58411 | | |
58411 | 58412 | | |
58412 | 58413 | | |
58413 | | - | |
| 58414 | + | |
58414 | 58415 | | |
58415 | 58416 | | |
58416 | 58417 | | |
| 58418 | + | |
| 58419 | + | |
| 58420 | + | |
| 58421 | + | |
| 58422 | + | |
| 58423 | + | |
| 58424 | + | |
58417 | 58425 | | |
58418 | 58426 | | |
58419 | 58427 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
| |||
0 commit comments