[JsRuntimeHost] Implement Object::Delete for Node-API-JSI

Open Beginner friendly
#2,042 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp
Domain
backend

Research direction

Read the Napi::Object::Delete overloads in Core/Node-API-JSI/Include/napi/napi-inl.h, where the issue says the implementation is stubbed. Start by checking how neighboring property operations are implemented and how their results are returned. Implement deletion for the requested property and verify that the example call no longer throws and returns the deletion result.

Written by the indexing model from the issue text.

Description

[Filed by Copilot on behalf of @bghgary]

Describe the bug

Node-API-JSI’s Napi::Object::Delete overloads throw std::runtime_error("TODO") instead of deleting the requested property. The implementation is currently stubbed.

To Reproduce

auto object = Napi::Object::New(env);
object.Set("value", 1);
object.Delete("value");

The final call throws "TODO".

Expected behavior

Object::Delete should delete the property and return the result without throwing.

Screenshots

N/A

Other

  • Platform: Windows x64 with the JSI backend.
Dominant language
C++
Stars
931
Forks
169
Avg merge
2d 17h
Merged PRs (30d)
66

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 BabylonJS/BabylonNative

All issues in BabylonJS/BabylonNative

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.