1

I'm developing a Google Sheets application using Google Apps Script. I am using TypeScript, ts2gas and VSCode on a Windows 10 machine.

None of the source specifies "use strict" in any form, however I keep getting an error message that says,

TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them

The full error log from the Executions page reads:

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)

I do use callee and arguments, and because I do use them I avoid strict mode completely. Nevertheless, the interpreter seems to be convinced that I'm using it.

Can anyone tell me why this is happening and what I can do about it?

bugmagnet
  • 7,631
  • 8
  • 69
  • 131

0 Answers0