diff options
author | Trevor Manz <trevor.j.manz@gmail.com> | 2023-10-06 17:26:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 21:26:11 +0000 |
commit | 48bb3b2b0f519077e1a454034fbbe79d9db23c4a (patch) | |
tree | 4caaa16c482ecae97cd7f8e22030a90a0eea0174 /cli/tests/node_compat/test/parallel/test-buffer-arraybuffer.js | |
parent | ceecd8c495619284eee5763c1adb4afba345dceb (diff) |
feat(unstable): Await return from `Jupyter.display` (#20807)
Allows `Jupyter.display` to return a promise.
Example:
```javascript
class WikiPage {
constructor(public name) {}
async [Symbol.for("Jupyter.display")]() {
let response = await fetch("https://en.wikipedia.org/wiki/" + this.name);
return { "text/html": await response.text() }
}
}
new WikiPage("Deno_(software)")
```
Diffstat (limited to 'cli/tests/node_compat/test/parallel/test-buffer-arraybuffer.js')
0 files changed, 0 insertions, 0 deletions