Skip to content

StdLib Function Error JSON

Roger Johansson edited this page Jan 14, 2026 · 1 revision

Function, Error, JSON, Boolean

Core language types and utilities.


Function

Implementation Status: 100% Complete

Constructor

Method Status Description
Function(...args, body) Implemented Creates function dynamically

Prototype Methods

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)

Error Types

Implementation Status: Partial (missing cause and stack)

Error Types

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

Error Properties

Property Status Description
name Implemented Error type name
message Implemented Error message
cause Not Implemented Error cause (ES2022)
stack Not Implemented Stack trace

Error Prototype Methods

Method Status Description
toString() Implemented Returns "name: message"

AggregateError

Property Status Description
errors Not Implemented Array of nested errors

JSON

Implementation Status: Partial

Method Status Description
JSON.parse(text, reviver) Implemented Parses JSON string
JSON.stringify(value, replacer, space) Partial Missing replacer and space

parse() Features

  • Full JSON parsing
  • Reviver function support
  • SyntaxError for invalid JSON

stringify() Features

  • All value types
  • Recursive object/array handling
  • Missing: replacer parameter
  • Missing: space parameter (pretty print)

Boolean

Implementation Status: 100% Complete

Constructor

Method Status Description
Boolean(value) Implemented Converts to boolean
new Boolean(value) Implemented Creates Boolean wrapper

Prototype Methods

Method Status Description
toString() Implemented Returns "true" or "false"
valueOf() Implemented Returns primitive boolean

Symbol

Implementation Status: 100% Complete

Constructor

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

Prototype Methods

Method Status Description
toString() Implemented Returns "Symbol(desc)"
valueOf() Implemented Returns symbol
description (getter) Implemented Returns description
[Symbol.toPrimitive] Implemented Returns symbol

Well-Known Symbols

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

Files

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

See Also

Clone this wiki locally