Apply upstream PR #1623 by danusha2345 (fix commit aa777063), which also addresses #1616, to the current main base. Preserve the upstream WASM and Rust implementations and regression coverage. Index assigned locals, table members, static string keys and nested callback tables as callable symbols, with calls owned by those symbols. Keep dynamic keys unguessed. Add #1650 to the Unreleased changelog and retain the existing re-index guidance without an extraction-version bump. Verified on Linux x64 with Node 22.19.0: - native kernel build, tsc, asset copy, executable CLI - issue repro: 3 nodes / 2 edges -> 4 nodes / 4 edges - EPR.PowerController::SyncHydroPower is indexed; its caller is client.lua - syncHydroPower depth-2 impact reaches client.lua - extraction/resolution/Lua parity: 844 tests passed (kernel expected) - forced-WASM Lua/Luau extraction/resolution: 20 tests passed Co-authored-by: Colby McHenry <colbymchenry@users.noreply.github.com>
This commit is contained in:
co-authored by
Colby McHenry
parent
195888d71f
commit
8c047342cd
@@ -24,7 +24,7 @@ local function localFn(...)
|
||||
return select("#", ...)
|
||||
end
|
||||
|
||||
-- doc for anonAssigned (variable, initializer invisible)
|
||||
-- doc for anonAssigned (function named from its local binding)
|
||||
local anonAssigned = function(v)
|
||||
return hidden(v)
|
||||
end
|
||||
@@ -68,6 +68,15 @@ M.assigned = function(z)
|
||||
return topFn(z)
|
||||
end
|
||||
|
||||
M.callbacks = {
|
||||
on_start = function()
|
||||
return topFn(17)
|
||||
end,
|
||||
["on_stop"] = function()
|
||||
return topFn(18)
|
||||
end,
|
||||
}
|
||||
|
||||
M.handlers = { on_start = topFn, on_stop = localFn, skipped = missing }
|
||||
local tbl = { cb = topFn, [1] = localFn, nested = { deep_cb = topFn } }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user