Referring to an empty hyperscript file throws an error
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
Research direction
Reproduce the issue with a script element pointing to an empty /scripts._hs file, then inspect the parser path shown in the hyperscript-0.9.5-2839a7f.js stack trace, especially raiseParseError and parseElement. Done means an empty external hyperscript file no longer throws the reported RangeError.
Written by the indexing model from the issue text.
Description
Adding e.g. <script type_="text/hyperscript" src="/scripts._hs" /> when scripts._hs is empty results in e.g.
Uncaught (in promise) RangeError: Invalid count value
at String.repeat (<anonymous>)
at hyperscript-0.9.5-2839a7f.js:1:9892
at Object.c [as raiseParseError] (hyperscript-0.9.5-2839a7f.js:1:9939)
at hyperscript-0.9.5-2839a7f.js:1:11322
at hyperscript-0.9.5-2839a7f.js:1:9423
at Object.i [as parseElement] (hyperscript-0.9.5-2839a7f.js:1:9535)
at hyperscript-0.9.5-2839a7f.js:1:35679
at hyperscript-0.9.5-2839a7f.js:1:9423
at i (hyperscript-0.9.5-2839a7f.js:1:9535)
at Object.l [as parseAnyOf] (hyperscript-0.9.5-2839a7f.js:1:9658)
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bigskysoftware/_hyperscript
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bigskysoftware/_hyperscript#688 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bigskysoftware/_hyperscript#678 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
bigskysoftware/_hyperscript#676 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
bigskysoftware/_hyperscript#695 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
bigskysoftware/_hyperscript#687 ·
All issues in bigskysoftware/_hyperscript
Similar issues
-
curation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#186 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
clerk/javascript#9852 ·
-
bug p1 tools
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
factory-active factory-automatic task-bug-reproduction-cannot-reproduce task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 84/100