Skip to content

Remove non-standard InternalError exception type#1517

Closed
saghul wants to merge 1 commit into
masterfrom
remove-internal-error
Closed

Remove non-standard InternalError exception type#1517
saghul wants to merge 1 commit into
masterfrom
remove-internal-error

Conversation

@saghul
Copy link
Copy Markdown
Contributor

@saghul saghul commented May 26, 2026

InternalError is a Mozilla extension that V8 and JavaScriptCore do not
implement. Remove it from the engine and map its existing uses to the
appropriate standard error types: RangeError for resource-exhaustion
conditions (out of memory, string too long, regexp OOM, unreasonable
atom count) and plain Error for engine-invariant assertion failures
(invalid opcodes, stack inconsistency, corrupted bytecode, etc.).

Fixes: #1516

InternalError is a Mozilla extension that V8 and JavaScriptCore do not
implement. Remove it from the engine and map its existing uses to the
appropriate standard error types: RangeError for resource-exhaustion
conditions (out of memory, string too long, regexp OOM, unreasonable
atom count) and plain Error for engine-invariant assertion failures
(invalid opcodes, stack inconsistency, corrupted bytecode, etc.).

Fixes: #1516
@saghul saghul force-pushed the remove-internal-error branch from d36b697 to b12c559 Compare May 26, 2026 09:25
@saghul saghul closed this May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider removing InternalError

1 participant