gopher-lua icon indicating copy to clipboard operation
gopher-lua copied to clipboard

Iterate from start of array to match Lua 5.1 `#` operator behavior.

Open tongson opened this issue 4 years ago • 2 comments

Fixes #304

Changes proposed in this pull request:

Follow behavior of Lua 5.1 # operator.

tongson avatar Jun 06 '21 11:06 tongson

Ok, either change gopher-lua Len() behavior or create a new function for the # operator.

tongson avatar Jun 06 '21 12:06 tongson

Coverage Status

Coverage decreased (-0.02%) to 87.938% when pulling 7f4782dc5128c15d9ef4112dc0dfe7ac5b79272a on tongson:fix_OP_LEN into f4c35e4016d9d8580b007ebaeb68ecd8e0b09f1c on yuin:master.

coveralls avatar Jun 06 '21 12:06 coveralls