lmodjs

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Zlib Imports: 2 Imported by: 0

README

Access to the WebAssembly host environment

This library is implemented through table js.

Documentation

js.global

The JavaScript global object, usually window or global.

js.type(x)

Returns the JavaScript type of x.

js.value(x)

Returns x as a JavaScript value.

js.new(x[, ...])

Uses JavaScript's new operator with value x as constructor and the given arguments.

js.free(f)

Frees up resources allocated for function f.

Documentation

Rendered for js/wasm

Overview

Access to the WebAssembly host environment.

Index

Constants

This section is empty.

Variables

View Source
var LuaKey = "__lua__"

Lua key in js object

View Source
var RegistryKey = "js"

Registry key

Functions

func Open

func Open(l *lua.State) int

Open opens the module.

Types

This section is empty.

Jump to

Keyboard shortcuts

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