package runtime

import "github.com/evanw/esbuild/internal/runtime"

Index

Constants

const Code = "" /* 1796 byte string literal not displayed */

Variables

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,
}

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
)

Source Files

runtime.go

Version
v0.2.12
Published
May 13, 2020
Platform
windows/amd64
Last checked
29 minutes ago

Tools for package owners.