arnodel / golua

A Lua compiler / runtime in Go
Apache License 2.0
93 stars 10 forks source link

Best effort to name anonymous functions #64

Closed arnodel closed 2 years ago

arnodel commented 2 years ago

When the context gives a possible name (e.g. they are assigned to a variable)

so e.g. x = function() end will give the function the name x. See test file for list of supported cases. The name is accessible via debug.getinfo()

codecov[bot] commented 2 years ago

Codecov Report

Merging #64 (54bb509) into master (407f3d7) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #64   +/-   ##
=======================================
  Coverage   86.21%   86.21%           
=======================================
  Files          90       90           
  Lines        9822     9822           
=======================================
  Hits         8468     8468           
  Misses       1067     1067           
  Partials      287      287           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 407f3d7...54bb509. Read the comment docs.