Runtime Isolation: createIsolatedContext() + strictObject + tolerantProxy #2
Labels
No labels
bug
docs
feature
housekeeping
html-spec
performance
react-compat
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
glow-all/true-headless-browser#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Create an isolated JS execution context per page. Page JS sees window, document, fetch, setTimeout — but NOT Bun, process, fs, require.
Implement two proxy layers:
What to Build
2.1 tolerant-proxy.ts
2.2 diagnostics/api-log.ts
2.3 runtime-isolation.ts
2.4 strictObject + MissingBrowserAPI
Tests
Unit Tests
Edge Cases
new tolerantProxy()does not throwtolerantProxy()does not throwthis.constructor.constructor('return Bun')throws ReferenceErrorDefinition of Done
Runtime Isolation — createIsolatedContext() + strictObject + tolerantProxy. ✅ Implementiert in execution-realm.ts, tolerant-proxy.ts. Tests: tolerant-proxy.test.ts (21/21).