ChainSafe / ChainSafe/zapi

Language specific edge cases for public exports

Open
#75 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Zig
Stars
4
Forks
4
Avg merge
16h 14m
Merged PRs (30d)
2

Description

Checked with my codex, these two edge cases seems not works correct.

- module exports name like that

```zig
pub const @"__proto__" = enum(u8) {
inherited = 7,
};
```

- property name like that
```zig
pub const SpecialTags = enum(u8) {
@"__proto__" = 1,
normal = 2,
};
```

_Originally posted by @GrapeBaBa in https://github.com/ChainSafe/zapi/issues/73#issuecomment-5328059415_

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the two Zig examples from the issue, covering a public export named __proto__ and an enum property with that name. Trace the public-export handling and verify that both examples are processed correctly without treating __proto__ specially or incorrectly.

Written by the indexing model from the issue text.

Assessment

Tech stack
zig
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.