Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ceifa/wasmoon
/ functions
Functions
143 in github.com/ceifa/wasmoon
⨍
Functions
143
◇
Types & classes
54
↓ 148 callers
Method
cwrap
( name: string, returnType: Emscripten.JSType | null, argTypes: Array<Emscripten.JSTyp
src/luawasm.ts:430
↓ 74 callers
Function
getEngine
(config = {})
test/utils.js:7
↓ 66 callers
Method
set
* Sets the value of a global variable. * @param name - The name of the global variable. * @param value - The value to set for the global var
src/global.ts:164
↓ 65 callers
Method
doString
* Executes Lua code from a string asynchronously. * @param script - Lua script to execute. * @returns A Promise that resolves to the result
src/engine.ts:64
↓ 19 callers
Method
createEngine
* Creates a Lua engine with the specified options. * @param [options] - Configuration options for the Lua engine. * @returns - A Promise tha
src/factory.ts:82
↓ 17 callers
Method
pop
(count = 1)
src/thread.ts:153
↓ 16 callers
Method
getTop
()
src/thread.ts:85
↓ 16 callers
Method
loadString
(luaCode: string, name?: string)
src/thread.ts:55
↓ 13 callers
Method
get
* Retrieves the value of a global variable. * @param name - The name of the global variable. * @returns - The value of the global variable.
src/global.ts:152
↓ 12 callers
Method
getValue
(index: number, inputType?: LuaType, userdata?: unknown)
src/thread.ts:271
↓ 12 callers
Method
run
(argCount = 0, options?: Partial<LuaThreadRunOptions>)
src/thread.ts:103
↓ 11 callers
Method
newThread
()
src/thread.ts:43
↓ 10 callers
Method
pushValue
(rawValue: unknown, userdata?: unknown)
src/thread.ts:187
↓ 8 callers
Method
lua_pop
(luaState: LuaState, count: number)
src/luawasm.ts:358
↓ 7 callers
Method
pushValue
(thread: Thread, decoratedValue: Decoration<any, ProxyDecorationOptions>)
src/type-extensions/proxy.ts:138
↓ 7 callers
Method
registerTypeExtension
* Registers a type extension for Lua objects. * Higher priority is more important and will be evaluated first. * Allows library users to spe
src/global.ts:102
↓ 7 callers
Method
unref
(index: number)
src/luawasm.ts:395
↓ 6 callers
Method
assertOk
(result: LuaReturn)
src/thread.ts:375
↓ 6 callers
Function
getFactory
(env)
test/utils.js:3
↓ 6 callers
Method
getRef
(index: number)
src/luawasm.ts:415
↓ 6 callers
Method
mountFile
* Mounts a file in the Lua environment asynchronously. * @param path - Path to the file in the Lua environment. * @param content - Content o
src/factory.ts:38
↓ 6 callers
Method
pushValue
(thread: Thread, decoration: Decoration<Promise<T>>)
src/type-extensions/promise.ts:134
↓ 5 callers
Method
doStringSync
* Executes Lua code from a string synchronously. * @param script - Lua script to execute. * @returns - The result returned by the Lua script
src/engine.ts:82
↓ 5 callers
Method
getMemoryUsed
* Gets the amount of memory used by the Lua engine. Can only be used if the state was created with the `traceAllocations` option set to true. * @
src/global.ts:190
↓ 5 callers
Method
isClosed
()
src/thread.ts:350
↓ 4 callers
Method
getLuaModule
* Gets the Lua WebAssembly module. * @returns - A Promise that resolves to the Lua WebAssembly module.
src/factory.ts:90
↓ 4 callers
Method
getValue
(thread: Thread, index: number)
src/type-extensions/function.ts:176
↓ 4 callers
Method
indexToString
(index: number)
src/thread.ts:354
↓ 4 callers
Method
pushValue
(thread: Thread, decoration: any)
src/type-extensions/null.ts:62
↓ 4 callers
Method
pushValue
(thread: Thread, decoration: Decoration<FunctionType, FunctionDecoration>)
src/type-extensions/function.ts:145
↓ 4 callers
Method
resume
(argCount = 0)
src/thread.ts:71
↓ 4 callers
Function
tick
()
test/utils.js:15
↓ 3 callers
Method
doFile
* Executes Lua code from a file asynchronously. * @param filename - Path to the Lua script file. * @returns - A Promise that resolves to the
src/engine.ts:73
↓ 3 callers
Method
getMemoryStatsRef
()
src/global.ts:210
↓ 3 callers
Method
getStackValues
(start = 0)
src/thread.ts:172
↓ 3 callers
Method
getValue
(thread: Thread, index: number)
src/type-extensions/null.ts:53
↓ 3 callers
Function
isPromise
(target: any)
src/utils.ts:1
↓ 3 callers
Method
setMemoryMax
* Sets the maximum memory allowed for the Lua engine. Can only be used if the state was created with the `traceAllocations` option set to true. *
src/global.ts:206
↓ 3 callers
Method
setTimeout
(timeout: number | undefined)
src/thread.ts:322
↓ 3 callers
Method
stateToThread
(L: LuaState)
src/thread.ts:183
↓ 2 callers
Method
call
(name: string, ...args: any[])
src/thread.ts:157
↓ 2 callers
Method
callByteCode
(loader: (thread: Thread) => void)
src/engine.ts:100
↓ 2 callers
Function
decorate
(target: unknown, options: T)
src/decoration.ts:12
↓ 2 callers
Function
decorateFunction
(target: FunctionType, options: FunctionDecoration)
src/type-extensions/function.ts:17
↓ 2 callers
Function
decorateProxy
(target: unknown, options?: ProxyDecorationOptions)
src/type-extensions/proxy.ts:15
↓ 2 callers
Method
getMetatableName
(index: number)
src/thread.ts:252
↓ 2 callers
Method
getTable
(name: string, callback: (index: number) => void)
src/global.ts:169
↓ 2 callers
Method
loadFile
(filename: string)
src/thread.ts:67
↓ 2 callers
Method
luaL_getmetatable
(luaState: LuaState, name: string)
src/luawasm.ts:362
↓ 2 callers
Function
mapTsType
(type, name)
utils/create-bindings.js:94
↓ 2 callers
Function
parseNamedSymbol
(symbol)
utils/create-bindings.js:112
↓ 2 callers
Method
pushValue
(thread: Thread, decoration: Decoration<Error>)
src/type-extensions/error.ts:67
↓ 2 callers
Method
ref
(data: unknown)
src/luawasm.ts:374
↓ 2 callers
Method
runSync
(argCount = 0)
src/thread.ts:147
↓ 2 callers
Method
setField
(index: number, name: string, value: unknown)
src/thread.ts:97
↓ 1 callers
Method
close
* Closes the global state of the Lua engine.
src/global.ts:73
↓ 1 callers
Method
close
()
src/type-extensions/function.ts:132
↓ 1 callers
Function
decorateUserdata
(target: unknown)
src/type-extensions/userdata.ts:11
↓ 1 callers
Method
doFileSync
* Executes Lua code from a file synchronously. * @param filename - Path to the Lua script file. * @returns - The result returned by the Lua
src/engine.ts:93
↓ 1 callers
Method
getLastRefIndex
()
src/luawasm.ts:420
↓ 1 callers
Method
getName
()
test/engine.test.js:17
↓ 1 callers
Method
getPointer
(index: number)
src/thread.ts:346
↓ 1 callers
Method
getValue
(thread: Thread, index: number)
src/type-extensions/proxy.ts:132
↓ 1 callers
Method
getValue
(thread: Thread, index: number, userdata?: any)
src/type-extensions/table.ts:22
↓ 1 callers
Method
getValue
(thread: Thread, index: number)
src/type-extensions/userdata.ts:50
↓ 1 callers
Method
getValueDecorations
(value: any)
src/thread.ts:413
↓ 1 callers
Method
initialize
(customWasmFileLocation?: string, environmentVariables?: EnvironmentVariables)
src/luawasm.ts:24
↓ 1 callers
Method
isType
(_thread: Thread, _index: number, type: LuaType, name?: string)
src/type-extensions/proxy.ts:127
↓ 1 callers
Method
lua_remove
(luaState: LuaState, index: number)
src/luawasm.ts:353
↓ 1 callers
Method
lua_upvalueindex
(index: number)
src/luawasm.ts:370
↓ 1 callers
Method
mountFileSync
* Mounts a file in the Lua environment synchronously. * @param luaWasm - Lua WebAssembly module. * @param path - Path to the file in the Lua
src/factory.ts:48
↓ 1 callers
Function
parseLine
(line)
utils/create-bindings.js:131
↓ 1 callers
Method
readTableKeys
(thread: Thread, index: number)
src/type-extensions/table.ts:94
↓ 1 callers
Method
readTableValues
(thread: Thread, index: number, seenMap: Map<number, TableType>, table: TableType)
src/type-extensions/table.ts:109
↓ 1 callers
Method
remove
(index: number)
src/thread.ts:93
↓ 1 callers
Function
runHeapsort
()
bench/steps.js:40
↓ 1 callers
Method
setMetatable
(index: number, metatable: Record<any, any>)
src/thread.ts:239
↓ 1 callers
Method
setTop
(index: number)
src/thread.ts:89
↓ 1 callers
Function
walk
(dir)
test/luatests.js:6
Method
checkSelf
(self: Promise<any>)
src/type-extensions/promise.ts:37
Method
close
()
src/thread.ts:309
Method
close
()
src/type-extensions/error.ts:74
Method
close
()
src/type-extensions/proxy.ts:171
Method
close
()
src/type-extensions/promise.ts:130
Method
close
()
src/type-extensions/null.ts:71
Method
close
()
src/type-extensions/table.ts:14
Method
close
()
src/type-extensions/userdata.ts:64
Function
constructor
(thread: Global, name: string)
src/type-extension.ts:11
Method
constructor
(name)
test/engine.test.js:13
Method
constructor
(public readonly count: number)
src/raw-result.ts:2
Method
constructor
* Constructs a new Global instance. * @param cmodule - The Lua WebAssembly module. * @param shouldTraceAllocations - Whether to trace memory
src/global.ts:23
Method
constructor
( private cmodule: LuaWasm, { openStandardLibs = true, injectObjects =
src/engine.ts:16
Method
constructor
(lua: LuaWasm, typeExtensions: OrderedExtension[], address: number, parent?: Thread)
src/thread.ts:36
Method
constructor
( public target: T, public options: K, )
src/decoration.ts:6
Method
constructor
* Constructs a new LuaFactory instance. * @param [customWasmUri] - Custom URI for the Lua WebAssembly module. * @param [environmentVariables
src/factory.ts:18
Method
constructor
(module: LuaEmscriptenModule)
src/luawasm.ts:200
Method
constructor
(thread: Global, injectObject: boolean)
src/type-extensions/error.ts:10
Method
constructor
(thread: Global)
src/type-extensions/proxy.ts:22
Method
constructor
(thread: Global, injectObject: boolean)
src/type-extensions/promise.ts:14
Method
constructor
(thread: Global)
src/type-extensions/null.ts:10
next →
1–100 of 143, ranked by callers