-
-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(minifier): drop
0
from new Int8Array(0)
and other TypedArrays (
#8431) 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).
- Loading branch information
1 parent
f935d94
commit d56020b
Showing
2 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters