window

package
v0.3.40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

README

window

This model is auto-imported as default.

"window" should not exist in "headless" javascript VM.

It's added for compatibility with Typescript defaults and as a global VM context object.

Documentation

Index

Constants

View Source
const NAME = "window"

Variables

View Source
var FIELDS = []string{"context", "params"}

Functions

func Enable

func Enable(ctx *commons.RuntimeContext)

func NewContext

func NewContext(runtime *goja.Runtime) goja.Value

Types

type JsSize

type JsSize struct {
	// contains filtered or unexported fields
}

type ModuleRuntime

type ModuleRuntime struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL