Skip to content

feat: port test_object core to CTS - #73

Open
bavulapati wants to merge 1 commit into
nodejs:mainfrom
bavulapati:feat/port-test-object
Open

feat: port test_object core to CTS#73
bavulapati wants to merge 1 commit into
nodejs:mainfrom
bavulapati:feat/port-test-object

Conversation

@bavulapati

Copy link
Copy Markdown
Contributor

Ports the stable core of test/js-native-api/test_object: property get/set/has/delete, property-name modes, wrap/unwrap across prototype chains, type tags, and seal/freeze.

Upstream asserts V8's exact error text for the seal/freeze violations (Cannot add property w, object is not extensible). Test files are modules and therefore strict, so those violations still throw; this port asserts TypeError instead of engine-specific message text.

node_api_create_object_with_properties is left out; it is experimental and lands as its own addon in a follow-up. test_null and test_exceptions follow as separate PRs, after which PORTING.md moves off Partial.

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

Labels

None yet

Projects

Status: Need Triage

Development

Successfully merging this pull request may close these issues.

1 participant