Skip to content

check content type in typedarray species creation - #1847

Open
aouxwoux wants to merge 1 commit into
quickjs-ng:masterfrom
aouxwoux:fix/species-create-content-type
Open

aouxwoux wants to merge 1 commit into
quickjs-ng:masterfrom
aouxwoux:fix/species-create-content-type

Conversation

@aouxwoux

Copy link
Copy Markdown

fixes #1770

verify result.[[ContentType]] matches exemplar.[[ContentType]] in js_typed_array___speciesCreate per ecmascript spec, throwing TypeError when incompatible. adds regression tests for slice, filter, map, and subarray.

tested: 121/121 tests pass with make test, make ctest jscheck clean.

@aouxwoux
aouxwoux force-pushed the fix/species-create-content-type branch from c1412e1 to 6147499 Compare October 25, 2026 19:01

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypedArray species creation skips the content type check

1 participant