Skip to content

feat: port test_general core to CTS - #72

Open
bavulapati wants to merge 3 commits into
nodejs:mainfrom
bavulapati:feat/port-test-general
Open

feat: port test_general core to CTS#72
bavulapati wants to merge 3 commits into
nodejs:mainfrom
bavulapati:feat/port-test-general

Conversation

@bavulapati

Copy link
Copy Markdown
Contributor

Ports the stable core of test/js-native-api/test_general: test.js, testGlobals.js, testNapiRun.js, testNapiStatus.js.

Two deliberate differences from upstream:

  • testGetVersion() is compared against the harness napiVersion global rather than the hardcoded 10.
  • node_api_set_prototype is left out; it is experimental and lands as its own addon in a follow-up, so this addon stays loadable on every runtime.

First of several small PRs for this directory (testInstanceOf, V8 instanceof, testFinalizer, testEnvCleanup, setPrototype follow). PORTING.md moves to Partial until they all land.

@@ -0,0 +1,229 @@
#include <js_native_api.h>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No good reason - dropped by oversight while trimming the addon. Restored in 48920d8 along with the upstream comment; our include/js_native_api.h honors the macro, so the compile-time check carries over. test_general still builds and passes.

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.

2 participants