Skip to content

JavaScript Support ​

Runtime Restrictions ​

For security reasons, minigames do not support dynamic execution of JS code. Specifically:

  • Executing JS code with eval is not supported.
  • Creating functions with new Function is not supported.

Standard ECMAScript Support ​

The JS execution environment of minigames differs across platforms, which leads to differences in ECMAScript standard support between platforms.

Note that OpenPaaS cannot smooth over these differences in ECMAScript syntax support. When you need to use certain advanced syntax such as async/await, you must rely on a code transpilation tool to support it.