tencent cloud

Tencent Cloud Super App as a Service

Runtime Environment

Download
Focus Mode
Font Size
Last updated: 2025-02-24 17:10:37

Mini game runtime environment

Mini games run on various platforms: iOS (iPhone/iPad) clients, Android clients, and developer tools for debugging.
The script execution environments differ across these platforms:
On iOS, the game's JavaScript code runs in JavaScriptCore.
On Android, the mini game's JavaScript code runs v8.
In the developer tools, the mini game's JavaScript code runs in NW.js.

Platform differences

Although the runtime environments are quite similar, there are some differences:
JavaScript Syntax and API support: There may be inconsistencies in syntax and API support. Developers can enable the ES6 to ES5 conversion feature to mitigate syntax issues. Additionally, the mini game base library includes necessary polyfills to address API differences (See Details).
Developer tools: These tools are for debugging purposes only. The final performance and behavior should be tested on the actual client platforms.



Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback