#can i bypass strict mode?
1 messages · Page 1 of 1 (latest)
Looks like I can use javascript for the particular function if there isn't a better way
strict mode is enabled by default and can't be disabled in ESM modules
and Deno is built on ESM
1 messages · Page 1 of 1 (latest)
When I try use Deno Run , it complains
error: Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
const answer = o[s];
export function func(o: object, s : string) {
const answer = o[s];
return answer}
^
Looks like I can use javascript for the particular function if there isn't a better way
strict mode is enabled by default and can't be disabled in ESM modules
and Deno is built on ESM