Missing Object.flat()

ERRO[0387] TypeError: Object has no member ‘flat’ at file:///-:433:53(23)

For others looking here is a link to the embedded JS engine which answers a lot of questions: GitHub - dop251/goja: ECMAScript/JavaScript engine in pure Go

1 Like

By default, we rely on Babel and core.js to have support for ES6+ things that goja can’t natively support. Unfortunately, in this case, array.flat() seems to be too new for our version of core.js.