Skip to content

JavaScript Support ​

Runtime Restrictions ​

For security reasons, minigames do not support dynamically executing JS code, that is:

  • Using eval to execute JS code is not supported;
  • Using new Function to create functions is not supported.

Standard ECMAScript Support ​

The minigame JS execution environment differs across platforms, which leads to differences in each platform's support for the ECMAScript standard.

Note that OpenPaaS cannot smooth over the differences in ECMAScript syntax support. When you need to use some advanced syntax such as async/await, you need to rely on a code transformation tool to support this syntax.