Update jerryscript each frame.

This commit is contained in:
2026-06-06 10:30:22 -05:00
parent 5a08384ae1
commit 6f47543720
5 changed files with 40 additions and 21 deletions
+10 -6
View File
@@ -10,12 +10,16 @@ const platformNames = {
Console.print('Platform: ' + (platformNames[System.platform] || 'Unknown'));
const test = require('test.js');
Console.print(test.str());
test.increment();
Console.print(test.str());
test.decrement();
Console.print(test.str());
// Testing async/await
async function testAsync() {
Console.print('Testing async/await...');
await new Promise(resolve => requestAnimationFrame(resolve));
Console.print('First await done!');
await new Promise(resolve => setTimeout(resolve, 1000));
Console.print('Async/await works!');
}
testAsync();
// Scene.set('testscene.js');
// Console.print('Loading scene...');