mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
Compresses `new Int8Array(0)` into `new Int8Array()`. (then will be compress into `new Int8Array`). Partial quote from the [spec](https://tc39.es/ecma262/multipage/indexed-collections.html#sec-typedarray): > 5. If numberOfArgs = 0, then > a. Return ? AllocateTypedArray(constructorName, NewTarget, proto, 0). > 6. Else, > c. Else, > ii. Let elementLength be ? ToIndex(firstArgument). > iii. Return ? AllocateTypedArray(constructorName, NewTarget, proto, elementLength). |
||
|---|---|---|
| .. | ||
| ast_tools | ||
| benchmark | ||
| common | ||
| compat_data | ||
| coverage | ||
| javascript_globals | ||
| lint_rules | ||
| minsize | ||
| prettier_conformance | ||
| rulegen | ||
| transform_checker | ||
| transform_conformance | ||
| website | ||