SuperCode IDE
JavaScript & Node IDE Hub/ES2024 Async, Await & Worker
4.9 ★ OFFLINE ES2024 · TOP-LEVEL AWAIT · CONSOLE.TABLE · <1MS GUARD

Offline ES2024 JavaScript, Top-Level await & Async Console on Android.

Ditch archaic ES5 mobile apps and clunky HTML wrapper files. SuperCode runs standalone ES2024 JavaScript on an isolated background worker — supporting top-level await, for await...of, BigInt, structuredClone, console.table(), and <1ms infinite-loop termination.

ES2024
Top-Level await
<1ms
Loop Kill Guard
0HTML
Pure JS Console
Auto
Event-Loop Drain
01 STANDALONE ES2024 ASYNC & WORKER ISOLATION WORKBENCH
Top-Level await · for await...of · structuredClone · console.table() · <1ms Stop
es2024-async-worker/top_level_async.mjs — Top-Level await & Async Generators
Interactive Console Output
Ready
ES2024 · Event-Loop Auto-Drain
UTF-8 LF Ln 11, Col 1
02 CORE CAPABILITIES

Engineered Beyond Legacy ES5 Rhino & Main-Thread WebView Apps

Test modern asynchronous orchestration, immutable state cloning, and network fetch pipelines with instant feedback and rock-solid UI responsiveness.

02.1

Run Pure .js & .mjs Scripts Without HTML Boilerplate

Want to test an async retry helper, regex parser, or state reducer? Create a single `.js` or `.mjs` file and hit Run ▶ — no `<script>` tags, dummy HTML pages, or tiny mobile DevTools drawers required.

Direct .js / .mjs Run · Docked Split-Screen Console
02.2

Modern ES2024 Syntax That Beats Legacy ES5 Apps

Many Play Store JS runners embed decade-old engines that choke on `const`, arrow functions, or `async`. SuperCode runs top-level `await`, async generators (`async function*`), private `#fields`, `BigInt`, `WeakRef`, `structuredClone`, `Object.groupBy`, and `Array.at()` offline.

Top-Level await · Private #Fields · BigInt · WeakRef
02.3

Intelligent Event-Loop & Microtask Auto-Drain

Async code never exits prematurely before your Promises resolve: the worker tracks active `setTimeout`, `setInterval`, `queueMicrotask`, and `timers/promises` handles, draining the event loop cleanly until work settles.

Promise.allSettled · timers/promises · Clean Drain
02.4

Isolated Worker Thread & <1ms Infinite-Loop Kill

Running JavaScript on the main UI thread freezes ordinary editors solid on a buggy `while (true) {}`. SuperCode isolates execution on a dedicated background worker so tapping Stop ■ (or hitting the 15s watchdog) kills runaway loops in under 1ms.

Off-UI Worker · <1ms Abort · Zero Editor Stutter
02.5

Standard Fetch API, AbortController & Web Streams

Prototype live API clients using standard `fetch()`, `Headers`, `Request`, `Response`, `AbortController` / `AbortSignal.timeout()`, `URL`, `URLSearchParams`, `TextEncoder`/`TextDecoder`, and `ReadableStream`.

fetch() · AbortController · URL · ReadableStream
02.6

ASCII console.table(), High-Res Timers & 1:1 Errors

Visualize object arrays cleanly via formatted box-grid `console.table()`, profile hot functions with `console.time()` and sub-millisecond `performance.now()`, and trace thrown errors to exact source lines.

console.table() · performance.now() · 1:1 Line Stack
Built for Phones, Foldables & Tablets · Lightweight 45 MB JavaScript & Node IDE Hub
03 STEP-BY-STEP WORKFLOW

How to Prototype Async ES2024 Scripts in SuperCode

From quick one-liners to async generator pipelines in a distraction-free split view.

STEP 01 script.mjs / app.js

Open Any Standalone JavaScript File

Write ES2024 code directly with the 21-key JS/TS symbol bar (`=>`, `?.`, `??`, `` ` ``, `${}`) and offline AST completion.

STEP 02 await / console.table

Use Top-Level await, Timers, or Fetch

Chain Promises, `for await...of` iterators, `structuredClone`, or `fetch()` requests with `AbortController` timeouts.

STEP 03 Run ▶ / Stop ■

Execute in Zero-Freeze Worker Isolation

Watch real-time console output stream into the bottom or 55:45 landscape pane — and abort any runaway loop in `<1ms`.

STEP 04 Format & Inspect

Benchmark Timing & Auto-Format With 1 Tap

Compare millisecond execution telemetry across runs and tidy nested async callbacks instantly with the built-in JS formatter.

Dedicated Background Worker · 15s CPU Watchdog · Full ES6–ES2024 Compliance App Guide
04 CAPABILITY MATRIX

SuperCode ES2024 Worker vs. Legacy Mobile JS Apps

SuperCode ES2024 JavaScript Runner executes standalone modern JavaScript on Android inside an isolated background worker without HTML boilerplate. Unlike legacy ES5 mobile apps, it supports top-level await, async generators, Promise.allSettled, BigInt, structuredClone, Fetch with AbortController, console.table(), automatic event-loop draining, and sub-millisecond infinite-loop termination.

STANDALONE JAVASCRIPT RUNTIME COMPARISON ON ANDROID
Runtime Dimension SuperCode ES2024 Worker Legacy ES5 Mobile JS Apps HTML WebView Scratchpads Online Repl Sandboxes
ECMAScript Standard Modern ES2024 + Top-Level await Offline Outdated ES5 / partial ES6 Tied to HTML page lifecycle Modern (Online only)
Infinite-Loop Safety Isolated Worker (<1ms Zero-Freeze Kill) Freezes or crashes entire app Locks up WebView UI thread Browser tab hang
Async & Event Loop Auto-Drains Promises, Microtasks & Timers No native async/await Manual DevTools inspection Supported
Console Diagnostics ASCII console.table(), Timers & 1:1 Lines Plain string print only Hidden `[object Object]` Network delayed
Boilerplate Required 0 Lines (Run .js / .mjs Directly) 0 Lines Requires index.html wrapper Account login wall
Built for Phones, Foldables & Tablets · Lightweight 45 MB Google Play
05 QUESTIONS & ANSWERS

Frequently Asked Questions

Common questions about ES2024 syntax, top-level `await`, `fetch()`, and infinite-loop protection.

Can I run JavaScript files directly in SuperCode without creating an HTML file?
Yes! SuperCode has a dedicated standalone JavaScript console engine separate from its HTML5 Web IDE. Just open any `.js`, `.mjs`, or `.cjs` file and tap Run ▶.
How do I use top-level `await` without wrapping code in an `async function main()`?
Save your file as `.mjs` (or set `"type": "module"` in `package.json`, or simply write top-level `await` in an ES Module script) — SuperCode executes top-level `await` natively and waits for all Promises to settle.
What happens if I accidentally write an infinite `while (true)` loop on my phone?
Your editor and unsaved files stay 100% responsive because scripts run on an isolated background worker thread. Tap the Stop ■ button (or let the 15-second CPU watchdog trigger) to terminate the worker in under 1 millisecond.
Does `fetch()` work inside standalone JavaScript scripts?
Yes. Standard `fetch()`, `Headers`, `Request`, `Response`, and `AbortController` are built right into the worker runtime for testing live HTTPS APIs whenever your device has connectivity.
06 JAVASCRIPT, NODE CORE & CRYPTO GUIDES

Complete JavaScript & Node IDE Documentation Suite

Explore the main Offline JavaScript IDE hub and all 5 specialized ES2024 & Node.js guides.

JS-HUB ES2024 · 29 Node APIs · Pillar Hub

Offline ES2024 & Node Studio Overview

Main overview of SuperCode's isolated ES2024 JavaScript worker, 29+ offline Node.js core modules, dual ESM/CommonJS, and <1ms loop safety.

javascript-ide Open Guide →
JS-01 node:fs · path · stream · zlib

29+ Offline Node.js Core Modules

Use fs/promises, path, Buffer, EventEmitter, stream, zlib, readline, util, and package.json ESM + CommonJS modules 100% offline on Android.

javascript-node-core-modules-offline Open Guide →
JS-02 Top-Level await · BigInt · Fetch

ES2024 Async, Top-Level Await & Fetch

Run modern ES2024 syntax, top-level await, async generators, console.table(), and <1ms loop-guarded worker scripts without dummy HTML files.

javascript-es2024-async-console Viewing Guide
JS-03 crypto.subtle · AES-256 · HMAC

Node & Web Crypto (AES-GCM / SHA)

Prototype cryptographic hashing, HMAC, PBKDF2, UUIDs, and AES-256-GCM encryption offline using both Web Crypto and node:crypto APIs.

javascript-web-crypto-security Open Guide →
JS-04 6 Templates · => Symbol Bar · JSON

Learn JS & Practice DSA Offline

Master JavaScript algorithms, functional arrays, and JSON manipulation anywhere in airplane mode with AST autocomplete and 1-tap formatting.

learn-javascript-dsa-android Open Guide →
JS-05 JSON/JSONC · Regex · Fetch API

JSON/JSONC Formatter, Regex & REST Fetch

Beautify and validate huge JSON/JSONC payloads offline, test ES2024 regular expressions with named capture groups, inspect console.table() outputs, and prototype fetch() REST APIs.

javascript-json-regex-formatter-android Open Guide →
6 Interconnected JS/Node Guides · ES2024 + 29 Built-In Offline Node Modules JavaScript & Node IDE Hub