From b871eb6fa4dfa2edc01ba871b3890bfa01206a93 Mon Sep 17 00:00:00 2001 From: Connor Bren Date: Thu, 29 Aug 2024 21:49:38 -0600 Subject: fix VM plugins --- test/plugins/node/test.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/plugins') diff --git a/test/plugins/node/test.lua b/test/plugins/node/test.lua index 15e4d16c..9b69935f 100644 --- a/test/plugins/node/test.lua +++ b/test/plugins/node/test.lua @@ -30,10 +30,10 @@ local function TestPlugin(script) ---@field b string ]] ---@param checker fun(state:parser.state) - return function (plugin, checker) + return function (interfaces, checker) files.open(TESTURI) files.setText(TESTURI, prefix .. script, true) - scope.getScope(TESTURI):set('pluginInterfaces', plugin) + scope.getScope(TESTURI):set('pluginInterfaces', interfaces) local state = files.getState(TESTURI) assert(state) checker(state) @@ -45,7 +45,7 @@ TestPlugin [[ local function t(a) a.components:test() end -]](myplugin, function (state) +]]({ myplugin }, function (state) guide.eachSourceType(state.ast, 'local', function (src) if guide.getKeyName(src) == 'a' then local node = vm.compileNode(src) -- cgit v1.2.3