kripod / kripod/tc39-proposal-private-function-arguments

Transformation in the readme creates two function objects

Open
#2 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Specifically, `fact.x = 1` outside the function and `fact.y = 1` inside the function should create two properties on the same object; additionally, `weakset.add(fact)` both inside and outside the function should result in `weakset.size === 1`.

Do you have an example transformation (not that it would be required at this stage) that maintains these invariants?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the transformation example in the README and trace how `fact.x`, `fact.y`, and `weakset.add(fact)` behave inside and outside the function. Determine whether the proposal can preserve object identity and the stated WeakSet size invariant; done means the example has a clear transformation that preserves both invariants.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.