(realm, code)
| 74 | // Eval string "code" in the content of realm "realm". Evaluation happens |
| 75 | // asynchronously, meaning it hasn't happened when the function returns. |
| 76 | function evalInRealm(realm, code) { |
| 77 | realm.postMessage(code, window.origin); |
| 78 | } |
| 79 | |
| 80 | // Same as evalInRealm() but returns a Promise which will resolve when the |
| 81 | // function has actually. |
no test coverage detected