Commit 00c38c0
Document top-level await support for JavaScript code execution
Adds documentation for the new top-level await feature in JavaScript
code interpreter contexts. This enhancement allows users to write
async code without manual IIFE wrapping.
Changes:
- Add top-level await section to code-execution.mdx guide
- Update AI-generated code example to showcase async patterns
- Add JavaScript top-level await documentation to interpreter.mdx API reference
- Explain automatic async wrapping and expression return behavior
Synced from cloudflare/sandbox-sdk PR #261
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 4a2fab8 commit 00c38c0
File tree
2 files changed
+50
-6
lines changed- src/content/docs/sandbox
- api
- guides
2 files changed
+50
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
63 | 81 | | |
64 | 82 | | |
65 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
77 | 103 | | |
78 | 104 | | |
79 | 105 | | |
| |||
185 | 211 | | |
186 | 212 | | |
187 | 213 | | |
188 | | - | |
| 214 | + | |
189 | 215 | | |
190 | 216 | | |
191 | 217 | | |
| |||
202 | 228 | | |
203 | 229 | | |
204 | 230 | | |
205 | | - | |
| 231 | + | |
206 | 232 | | |
207 | 233 | | |
208 | 234 | | |
209 | 235 | | |
210 | 236 | | |
211 | | - | |
| 237 | + | |
212 | 238 | | |
213 | | - | |
214 | | - | |
| 239 | + | |
| 240 | + | |
215 | 241 | | |
216 | 242 | | |
217 | 243 | | |
218 | | - | |
| 244 | + | |
219 | 245 | | |
220 | 246 | | |
221 | 247 | | |
| |||
0 commit comments