Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gnurizen committed Oct 28, 2024
1 parent e3f8525 commit 56c9a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interpreter/luajit/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ func newProto(rm remotememory.RemoteMemory, pt libpf.Address) (*proto, error) {
if !utf8.ValidString(p.name) {
return nil, errors.New("invalid chunkname string")
}
// If p.name == "" should we set it to something that isn't a valid lua function name?
// TODO: what does lua do for anonymous functions?

// This should never be empty string.
if p.name == "" {
return nil, errors.New("invalid chunkname string")
}
Expand Down

0 comments on commit 56c9a94

Please sign in to comment.