Provide a garbage collector tests for buffer runtime functions

Open
#182 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
node.js, react-native, typescript

Research direction

Start with test/node-api/test_buffer/test.js from the referenced Node.js revision and review pull request #147 for relevant context. Adapt the buffer garbage-collector cases for React Native using globalThis.gc(). Done means the buffer runtime tests cover the garbage-collection behavior and pass in the React Native environment.

Written by the indexing model from the issue text.

Description

Host 🏡 Node-API v1

Until https://github.com/callstackincubator/react-native-node-api/pull/147 is done we can provide buffer tests related to the garbage collector based on the following:
https://github.com/nodejs/node/blob/ce4a16f50ae289bf6c7834b592ca47ad4634dd79/test/node-api/test_buffer/test.js#L13

When running on React Native we can use following:
globalThis.gc()

Dominant language
TypeScript
Stars
206
Forks
12
Avg merge
4h 8m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from callstackincubator/react-native-node-api

All issues in callstackincubator/react-native-node-api

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.