Skip to content

某些情况下无法调用中文函数 #8

@HelloMitsuha

Description

@HelloMitsuha

Describe the bug
无法调用已定义的(中文名)函数?

To Reproduce
Steps to reproduce the behavior:
①在脚本任意位置编写(function xxx() end , xxx={["xx"]=function() end}(这个有时候不行) 或 xxx=function() end 形式)
②调用
③在绝大多数情况下都会出错:attempt to index ? (a nil value)

我已将错误信息在必应搜索,但未能找到原因

Expected behavior
只能构造,无法调用(大多数情况,使用table构造的可以调用,在某些情况(未知)也会失效)

Screenshots
IMG20220625214413
IMG20220625214236
IMG20220625214604

Desktop (please complete the following information):

  • OS: null
  • Browser null
  • Version null

Smartphone (please complete the following information):

  • Device: Android
  • OS: Android 9
  • Browser via
  • Version 1.0-alpha5

Additional context
建议还是修一下吧,我这边写脚本需要,为了方便我使用中文,如果修不了那也罢了,谢谢作者

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions