Restoring JerryScript a bit cleaner

This commit is contained in:
2026-06-01 21:52:36 -05:00
parent 41a4be678e
commit 8f78bba9e9
27 changed files with 1459 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
Console.print('This is called from JavaScript');
const platformNames = {
[System.PLATFORM_LINUX]: 'Linux',
[System.PLATFORM_KNULLI]: 'Knulli',
[System.PLATFORM_PSP]: 'PSP',
[System.PLATFORM_GAMECUBE]: 'GameCube',
[System.PLATFORM_WII]: 'Wii',
};
const platformName = platformNames[System.platform] || 'Unknown';
Console.print('Platform: ' + platformName);