(what)
| 101 | // writeRealm. Returns the id that can be used to access the object in those |
| 102 | // realms. |what| can contain constructor arguments. |
| 103 | async function constructAndStore(what) { |
| 104 | const objId = id(); |
| 105 | // Call |constructorRealm|'s constructor from inside |constructedRealm|. |
| 106 | writeRealm[objId] = await evalInRealmAndReturn( |
| 107 | constructedRealm, `new parent.constructorRealm.${what}`); |
| 108 | readRealm[objId] = writeRealm[objId]; |
| 109 | return objId; |
| 110 | } |
| 111 | |
| 112 | // Calls read() on the readable side of the TransformStream stored in |
| 113 | // readRealm[objId]. Locks the readable side as a side-effect. |
no test coverage detected