Google apps script 谷歌应用程序脚本抱怨;严格的;但是有';s号“;使用“严格的”;在消息来源中。这怎么可能?
我正在使用GoogleApps脚本开发一个GoogleSheets应用程序。我正在Windows10机器上使用TypeScript、ts2gas和VSCode 没有一个源代码以任何形式指定“use strict”,但是我一直收到一条错误消息,上面说Google apps script 谷歌应用程序脚本抱怨;严格的;但是有';s号“;使用“严格的”;在消息来源中。这怎么可能?,google-apps-script,google-sheets,Google Apps Script,Google Sheets,我正在使用GoogleApps脚本开发一个GoogleSheets应用程序。我正在Windows10机器上使用TypeScript、ts2gas和VSCode 没有一个源代码以任何形式指定“use strict”,但是我一直收到一条错误消息,上面说 TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objec
TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
执行
页面的完整错误日志如下:
May 7, 2020, 1:10:00 PM Error TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
at CalleeName(CommonFunctions/01_Kernel:3:14)
at Toast(CommonFunctions/01_Kernel:51:16)
at CartridgeSpecified_ConvertSheetToXml(CommonFunctions/01_Kernel_CartridgeSpecified:24:5)
at SaveButton(03_Sheet_DataEntry:60:20)
我确实使用了被调用方和参数,因为我使用了它们,所以我完全避免了严格模式。尽管如此,翻译似乎确信我正在使用它
有人能告诉我为什么会发生这种情况,我能做些什么吗?如何复制?很棘手。可能是间歇性错误。我已经注释掉了使用有问题函数的函数,我将不得不不使用它们。仅对于为了调试而获取执行上下文的函数,即使没有“使用严格”,某些对象(例如,
class
es)总是在严格模式下运行。遗憾的是,注释不能回答什么?如果评论解决了这个问题,我会补充一个答案。考虑到缺乏数据,我无法添加答案,除非我确信它解决了这个问题。如何复制?很棘手。可能是间歇性错误。我已经注释掉了使用有问题函数的函数,我将不得不不使用它们。仅对于为了调试而获取执行上下文的函数,即使没有“使用严格”,某些对象(例如,class
es)总是在严格模式下运行。遗憾的是,注释不能回答什么?如果评论解决了这个问题,我会补充一个答案。考虑到缺乏数据,我无法添加答案,除非我确信它解决了这个问题。