Skip to content

Consider "new.target" for constructor callbacks #200

@jasongin

Description

@jasongin

Reference nodejs/node#11975 (comment), nodejs/node#9293, nodejs/node#10915

In mixed JS/native inheritance scenarios, it can be necessary to get the "new target" for the constructor, via v8::FunctionCallbackInfo<T>::NewTarget(). In N-API this would be exposed as napi_get_cb_new_target() or something similar.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions