Restoring JerryScript a bit cleaner

This commit is contained in:
YourWishes committed 2026-06-01 21:52:36 -05:00
1 parent 41a4be678e
commit 8f78bba9e9
27 files changed
+1459 -4

No files matched your search

+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);