fix: berhtjan-core init.lua -- unprotected require, global _NAME #7
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type
bug
type
config
type
deployment
type
docs
type/documentation
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type/refactor
type
research
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/daw-modul-berhtjan-core#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problems
All five require calls are unprotected -- no pcall.
A missing submodule produces a raw Lua stack trace.
Affected: loader, composer, types, scanner, lang
_NAMEis declared withoutlocal-- pollutes global namespace.All other daw modules use
local _NAME.Fix
localto _NAME declarationSee also
Also: require("daw.common.json") in loader.lua is unprotected -- same fix needed there.
Also unprotected require in composer.lua: require("daw.berhtjan_core.types"). Same fix needed there.
scanner.lua: three points:
Fixed:
All tests passing on Lua 5.1 and 5.4.