In this episode, Surma talks about the Stage 2 proposal "JavaScript Struct", which introduces fixed-layout objects and the ability to share them between realms.
Surma was slightly wrong about why private fields were originally considered problematic for sharability. The problem occurs when a class can be evaluated multiple times:
This behavior makes it hard to compile private fields just as "slots" on an object, as clearly additional behavior is required. This is somewhat at odds with the goal of achieving a fixed layout.
Podden och tillhörande omslagsbild på den här sidan tillhör
Jake Archibald, Surma. Innehållet i podden är skapat av Jake Archibald, Surma och inte av,
eller tillsammans med, Poddtoppen.