Skip to content

Commit

Permalink
add test.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Dec 22, 2024
1 parent 8a6ef06 commit b0e30be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/apis/namespace/basic/test.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function main()
os.exec("xmake -vD")
end
3 changes: 3 additions & 0 deletions tests/apis/namespace/nested/test.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function main()
os.exec("xmake -vD")
end
1 change: 1 addition & 0 deletions xmake/core/base/interpreter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,7 @@ function interpreter:api_register_scope(...)
local scope_args = table.pack(...)
local scope_name = scope_args[1]
local scope_info = scope_args[2]
local namespace = self._NAMESPACE_STR

-- check invalid scope name, @see https://github.com/xmake-io/xmake/issues/4547
if scope_args.n > 0 and type(scope_name) ~= "string" then
Expand Down

0 comments on commit b0e30be

Please sign in to comment.