Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

List every runtime global and align Performance, goccia:ast and CSV/TSV parseChunk behaviour

Open
#1,277 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript

Research direction

Start by tracing runtimeGlobals and the Performance constructor, then inspect goccia:ast parse and the CSV/TSV parseChunk implementations. Done means all installed globals are listed, both Performance forms share the expected error, syntax errors include fileName, and CSV/TSV agree on resumable final rows with tests covering each case.

Written by the indexing model from the issue text.

Description

runtime

Summary

The built-in surface has a few inconsistencies. Found in the 0.14.0 docs audit.

Current behavior

  • runtimeGlobals is incomplete. Goccia.runtimeGlobals lists only globals registered through RegisterRuntimeGlobalName: EventTarget, Event, AbortController, AbortSignal, plus FFI, timers or test assertions when installed. Console, Performance, TextEncoder/TextDecoder, URL/URLSearchParams, fetch, Headers and Response never register.

  • Performance constructor messages differ. new Performance() throws Performance is not a constructor, while Performance() throws Illegal constructor.

  • goccia:ast drops the file name. parse(src, { fileName }) never puts the file name in the syntax-error message (Expected variable name (1:7)); fileName only affects the JSX extension warning.

  • CSV.parseChunk and TSV.parseChunk disagree on an unterminated final row:

    • CSV consumes it: parseChunk("a,b\n1,2\n3") returns done: true with {a:"3", b:""}.
    • TSV leaves it unread: done: false.

    Neither is tested, and the CSV behaviour contradicts the resume model JSONL documents.

Expected behavior

  • runtimeGlobals lists every runtime global the host installed.
  • Performance throws the same "Illegal constructor" TypeError in both forms.
  • goccia:ast includes fileName in syntax-error messages.
  • CSV and TSV parseChunk agree, most likely on TSV's resumable behaviour, with tests.

Scope notes

The docs are being corrected to describe the current behaviour until these are fixed.

Dominant language
Pascal
Stars
20
Forks
3
Avg merge
3d 21h
Merged PRs (30d)
51

Getting set up

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 frostney/GocciaScript

All issues in frostney/GocciaScript

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.