Interview Hack
Home
About
Games
Levels
JavaScript Quiz - Level 7
1. Purpose of ShadowRealm API?
Isolated env for untrusted code
Shadow DOM elements
Cache computations
Run in OS threads
2. WASM & JS memory interaction?
Share ArrayBuffer/SharedArrayBuffer
Copy memory each call
Isolated memory space
Read-only access
3. V8 hidden class optimization?
Hidden shape → fast access
Encrypts props
Caches objects
Moves to faster memory
4. Downside of proxies?
Prevent optimizations
Double memory
Block async funcs
Only in Node.js
5. Realm in JS?
Built-ins + global
Func scope
JS thread
Module namespace
6. Detect optimization in V8?
%GetOptimizationStatus / %Optimize...
CPU profile (DevTools)
Execution speed
--trace-opt logs
7. FinalizationRegistry purpose?
Cleanup after GC
Delete before GC
Force GC
Limit scope
8. Security of Compartments (SES)?
Freeze/isolate intrinsics
Cache modules
Encrypt vars
Run in OS threads
9. WASM table use?
Refs to funcs (indirect)
Raw memory
Call stack
Heap objects
SUBMIT EXAM