runtime

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const Code = `` /* 1794-byte string literal not displayed */

Variables

View Source
var SymMap = map[string]Sym{
	"__pow":                   PowSym,
	"__assign":                AssignSym,
	"__defineProperty":        DefinePropertySym,
	"__hasOwnProperty":        HasOwnPropertySym,
	"__getOwnPropertySymbols": GetOwnPropertySymbolsSym,
	"__propertyIsEnumerable":  PropertyIsEnumerableSym,
	"__rest":                  RestSym,
	"__modules":               ModulesSym,
	"__commonjs":              CommonJsSym,
	"__require":               RequireSym,
	"__toModule":              ToModuleSym,
	"__import":                ImportSym,
	"__export":                ExportSym,
}

Functions

This section is empty.

Types

type Sym

type Sym uint16
const (
	// These flags are designed to be merged together using bitwise-or to figure
	// out what runtime symbols are used. Each flag includes its dependencies so
	// that a bitwise-or will automatically also mark them as used too.
	PowSym                   Sym = (1 << 0)
	AssignSym                Sym = (1 << 1)
	DefinePropertySym        Sym = (1 << 2)
	HasOwnPropertySym        Sym = (1 << 3)
	GetOwnPropertySymbolsSym Sym = (1 << 4)
	PropertyIsEnumerableSym  Sym = (1 << 5)
	RestSym                  Sym = (1 << 6) | HasOwnPropertySym | GetOwnPropertySymbolsSym | PropertyIsEnumerableSym
	ModulesSym               Sym = (1 << 7)
	CommonJsSym              Sym = (1 << 8)
	RequireSym               Sym = (1 << 9) | ModulesSym | CommonJsSym
	ToModuleSym              Sym = (1 << 10) | HasOwnPropertySym
	ImportSym                Sym = (1 << 11) | ToModuleSym | RequireSym
	ExportSym                Sym = (1 << 12) | DefinePropertySym
)

Jump to

Keyboard shortcuts

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