js

package
v0.0.0-...-26b8db2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireModule

func RequireModule(vm *otto.Otto, name string) (*otto.Object, error)

RequireModule requires user, system or 3rd party modules

Types

type Console

type Console struct {
}

Console :

func NewConsole

func NewConsole() *Console

NewConsole returns new console

func (*Console) Err

func (c *Console) Err(call otto.FunctionCall) otto.Value

Err logs error message

func (*Console) Export

func (c *Console) Export(vm *otto.Otto)

Export exports console as a otto.Value

func (*Console) Info

func (c *Console) Info(call otto.FunctionCall) otto.Value

Info logs info message

func (*Console) Log

func (c *Console) Log(call otto.FunctionCall) otto.Value

Log logs info message

func (*Console) Warn

func (c *Console) Warn(call otto.FunctionCall) otto.Value

Warn logs warn message

type Process

type Process struct {
}

Process is the global object that includes utilities about process

func NewProcess

func NewProcess() *Process

NewProcess :

func (*Process) Exit

func (p *Process) Exit(call otto.FunctionCall) otto.Value

Exit exits Javascript process with exiting code

func (*Process) Export

func (p *Process) Export(vm *otto.Otto)

Export :

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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