Key `__proto__` in object literal is treated as an ordinary property

Open
#68 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, rust
Domain
compilers

Research direction

Start by running the JavaScript reproduction and tracing object-literal handling through dash's parser and interpreter. Compare the current treatment of the __proto__ key with the expected internal-prototype behavior, then add or update coverage so the example produces the reported result.

Written by the indexing model from the issue text.

Description

A-vm bug

... when it should be treated as setting its internal prototype slot. E.g.

let b = { __proto__: null };
console.log(b.__proto__); // not null!!
Dominant language
Rust
Stars
54
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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 y21/dash

All issues in y21/dash

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.