-
Notifications
You must be signed in to change notification settings - Fork 1
StdLib Function Error JSON
Roger Johansson edited this page Jan 14, 2026
·
1 revision
Core language types and utilities.
Implementation Status: 100% Complete
| Method | Status | Description |
|---|---|---|
Function(...args, body) |
Implemented | Creates function dynamically |
| Method | Status | Description |
|---|---|---|
call(thisArg, ...args) |
Implemented | Calls with specified this
|
apply(thisArg, args) |
Implemented | Calls with args array |
bind(thisArg, ...args) |
Implemented | Creates bound function |
toString() |
Implemented | Returns function string |
valueOf() |
Implemented | Returns function itself |
[Symbol.hasInstance](V) |
Implemented |
instanceof support |
caller (accessor) |
Implemented | Throws TypeError (restricted) |
arguments (accessor) |
Implemented | Throws TypeError (restricted) |
Implementation Status: Partial (missing cause and stack)
| Type | Status | Description |
|---|---|---|
Error |
Implemented | Base error type |
TypeError |
Implemented | Type mismatch errors |
RangeError |
Implemented | Value out of range |
ReferenceError |
Implemented | Invalid reference |
SyntaxError |
Implemented | Parse errors |
URIError |
Implemented | URI encoding errors |
EvalError |
Implemented | Legacy eval errors |
AggregateError |
Partial | Missing errors property |
| Property | Status | Description |
|---|---|---|
name |
Implemented | Error type name |
message |
Implemented | Error message |
cause |
Not Implemented | Error cause (ES2022) |
stack |
Not Implemented | Stack trace |
| Method | Status | Description |
|---|---|---|
toString() |
Implemented | Returns "name: message" |
| Property | Status | Description |
|---|---|---|
errors |
Not Implemented | Array of nested errors |
Implementation Status: Partial
| Method | Status | Description |
|---|---|---|
JSON.parse(text, reviver) |
Implemented | Parses JSON string |
JSON.stringify(value, replacer, space) |
Partial | Missing replacer and space
|
- Full JSON parsing
- Reviver function support
- SyntaxError for invalid JSON
- All value types
- Recursive object/array handling
-
Missing:
replacerparameter -
Missing:
spaceparameter (pretty print)
Implementation Status: 100% Complete
| Method | Status | Description |
|---|---|---|
Boolean(value) |
Implemented | Converts to boolean |
new Boolean(value) |
Implemented | Creates Boolean wrapper |
| Method | Status | Description |
|---|---|---|
toString() |
Implemented | Returns "true" or "false" |
valueOf() |
Implemented | Returns primitive boolean |
Implementation Status: 100% Complete
| Method | Status | Description |
|---|---|---|
Symbol(description) |
Implemented | Creates unique symbol |
Symbol.for(key) |
Implemented | Gets/creates global symbol |
Symbol.keyFor(sym) |
Implemented | Gets key for global symbol |
| Method | Status | Description |
|---|---|---|
toString() |
Implemented | Returns "Symbol(desc)" |
valueOf() |
Implemented | Returns symbol |
description (getter) |
Implemented | Returns description |
[Symbol.toPrimitive] |
Implemented | Returns symbol |
| Symbol | Status | Purpose |
|---|---|---|
Symbol.iterator |
Implemented | For-of iteration |
Symbol.asyncIterator |
Implemented | For-await-of iteration |
Symbol.hasInstance |
Implemented | instanceof behavior |
Symbol.toPrimitive |
Implemented | Type conversion |
Symbol.toStringTag |
Implemented | Object.prototype.toString |
Symbol.species |
Implemented | Derived object creation |
Symbol.match |
Implemented | String.match |
Symbol.matchAll |
Implemented | String.matchAll |
Symbol.replace |
Implemented | String.replace |
Symbol.search |
Implemented | String.search |
Symbol.split |
Implemented | String.split |
Symbol.isConcatSpreadable |
Implemented | Array.concat |
Symbol.unscopables |
Implemented | with statement |
Symbol.dispose |
Implemented | using statement |
Symbol.asyncDispose |
Implemented | await using statement |
| Type | Files |
|---|---|
| Function |
StdLib/Function/FunctionConstructor.cs, FunctionPrototype.cs
|
| Error |
StdLib/Error/ErrorConstructorBase.cs, ErrorPrototype.cs, *ErrorConstructor.cs
|
| JSON |
StdLib/Json/JsonPrototype.cs, JsonHelper.cs
|
| Boolean |
StdLib/Boolean/BooleanConstructor.cs, BooleanPrototype.cs
|
| Symbol |
StdLib/Symbol/SymbolConstructor.cs, SymbolPrototype.cs
|
- Symbol-System - Deep dive into symbols
- Error-Signaling - Internal error handling