Using eval to execute JavaScript code is not allowed.Creating functions with new Function is not permitted.Core-js can fill in the standard APIs that may be missing in certain platform environments.Promise are implemented using a setTimeout-based polyfill. This means that tasks triggered by Promise are treated as regular tasks rather than microtasks, resulting in differences in Promise execution order compared to the standard.var arr = []setTimeout(() => arr.push(6), 0)arr.push(1)const p = new Promise(resolve => {arr.push(2)resolve()})arr.push(3)p.then(() => arr.push(5))arr.push(4)setTimeout(() => arr.push(7), 0)setTimeout(() => {// Expected output: [1, 2, 3, 4, 5, 6, 7]// In the iOS 15 mini program environment, this will output: [1,2,3,4,6,5,7]console.log(arr)}, 1000)
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback