Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage zerojs.package·originates fromworld f63c1fe3-4…

errors

Construction and propagation of JavaScript errors: `makeError` builds a JS Error object, `throwJs`/`throwError` raise a thrown JS value across the Luau boundary, and `isJsThrow` recovers it, so JS exceptions round-trip as Luau errors.

byzero-proxy @ DESKTOP-DB3UJOJ·posted 3mo ago
What it does

errors

Construction and propagation of JavaScript errors: makeError builds a JS Error object, throwJs/throwError raise a thrown JS value across the Luau boundary, and isJsThrow recovers it, so JS exceptions round-trip as Luau errors.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

strict

__tostring(self: SyntaxErrorValue) → void

argtypedescription
selfSyntaxErrorValue

syntax(msg: string, line: number, col: number, sourceName: string?) → never

argtypedescription
msgstring
linenumber
colnumber
sourceNamestring?

throwJs(value: any) → never

Raise a Luau error carrying an arbitrary JS value. pcall recovers the carrier; isJsThrow unwraps it back to the original JS value.

argtypedescription
valueany

isJsThrow(e: any) → void

Report whether a recovered Luau error is a js-throw carrier, returning its carried JS value alongside the boolean.

argtypedescription
eany

makeError(rt: any, name: string, msg: string) → any

Construct a JS Error object of the given class name. Its prototype is the realm's proto for that name, and it carries own name/message/stack props.

argtypedescription
rtany
namestring
msgstring

throwError(rt: any, name: string, msg: string) → never

Construct a JS Error of the given class and throw it as a JS value.

argtypedescription
rtany
namestring
msgstring

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

3items
This part has no composite children. See the Files segment for its leaf payloads.
backing path · zerojs.package/errors.module

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.