https://github.com/cyyynthia/emscripten-fs-bug-14705
Minimal reproduction case for an emscripten bug when using Closure.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (4.8%) to scientific vocabulary
Repository
Minimal reproduction case for an emscripten bug when using Closure.
Basic Info
- Host: GitHub
- Owner: cyyynthia
- License: 0bsd
- Language: JavaScript
- Default Branch: mistress
- Size: 2.93 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Emscripten fs bug
Minimal reproduction case for an emscripten bug when using Closure.
Try it
make build
node index.js
You'll see an output giving you the return values of stat in a cheapo table. In theory, they should all be -1,
but the last tests returns 0.
The issue
Closure mangles the ERRNO code names, to reduce code size. While this is a good idea, the problem is that errno codes are used dynamically at runtime, and return undefined value as the names no longer match.
This causes problematic issues especially with stat as far as I can tell, and I ran into weird behavior of
libraries thinking a file/dir exists because of this, despite it not existing, resulting in undefined behavior.
Owner
- Name: Cynthia
- Login: cyyynthia
- Kind: user
- Location: Toulouse, France
- Company: @Borkenware
- Website: https://cynthia.dev
- Twitter: cyyynthia_
- Repositories: 102
- Profile: https://github.com/cyyynthia
23f. French Computer Science student at the University of Toulouse. I have a crippling cookie and coffee addiction.
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0