Documentation
¶
Overview ¶
Package js is the JavaScript engine package tsx runs apps on: goja on every target but the web, where the page's own engine runs them (browser.go). Its API is goja's, so on goja it is goja's types under other names, and the browser's implements the part tsx uses.
Index ¶
Constants ¶
const ( PromiseStatePending = goja.PromiseStatePending PromiseStateFulfilled = goja.PromiseStateFulfilled PromiseStateRejected = goja.PromiseStateRejected FLAG_TRUE = goja.FLAG_TRUE FLAG_FALSE = goja.FLAG_FALSE )
const Browser = false
Browser reports whether apps run on the page's engine.
Variables ¶
var ( New = goja.New Undefined = goja.Undefined Null = goja.Null IsUndefined = goja.IsUndefined IsNull = goja.IsNull AssertFunction = goja.AssertFunction AssertConstructor = goja.AssertConstructor NewSymbol = goja.NewSymbol MustCompile = goja.MustCompile UncapFieldNameMapper = goja.UncapFieldNameMapper )
Functions ¶
Types ¶
type ArrayBuffer ¶
type ArrayBuffer = goja.ArrayBuffer
type ConstructorCall ¶
type ConstructorCall = goja.ConstructorCall
type FunctionCall ¶
type FunctionCall = goja.FunctionCall
type InterruptedError ¶
type InterruptedError = goja.InterruptedError
type PromiseState ¶
type PromiseState = goja.PromiseState
type StackOverflowError ¶
type StackOverflowError = goja.StackOverflowError