Skip to content

Expose JS_NewCFunction3#877

Merged
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bptato:jsnewcfunction3
Feb 3, 2025
Merged

Expose JS_NewCFunction3#877
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bptato:jsnewcfunction3

Conversation

@bptato
Copy link
Copy Markdown
Contributor

@bptato bptato commented Feb 2, 2025

Useful if you want to set the prototype of a constructor to its parent constructor when creating a custom type hierarchy.

(e.g. in browsers, Text.__proto__ == CharacterData, and to implement this you can pass the CharacterData constructor as proto_val.)

Useful if you want to set the prototype of a constructor to its parent
constructor when creating a custom type hierarchy.

(e.g. in browsers, `Text.__proto__` == `CharacterData`, and to implement
this you can pass the `CharacterData` constructor as `proto_val`.)
@bnoordhuis bnoordhuis merged commit 92961d7 into quickjs-ng:master Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants