Skip to content

Use case - Script sandboxing for 3rd party tools #417

@xaviergonz

Description

@xaviergonz

I just read this line in the slide https://ptomato.name/talks/tc39-2025-02/#5
"If you have a use case, please come talk to me!"

A use case is creating a sandbox for user/3rd party scripts. I know it is actually in the docs, but I wanted to document an actual use case where it was considered.

Figma had to resort to running their own JS interpreter in WASM to achieve that sandboxing because the realms shim was not up to the task (it could be escaped):

https://www.figma.com/blog/how-we-built-the-figma-plugin-system/#attempt-3-realms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions