Skip to content

Commit 2fd05ac

Browse files
authored
Merge pull request #19265 from keegoid-nr/patch-28
add bullet point for advanced example
2 parents 8814a80 + 4491857 commit 2fd05ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/content/docs/synthetics/synthetic-monitoring/scripting-monitors/synthetic-scripted-browser-reference-monitor-versions-chrome-100.mdx

+1
Original file line numberDiff line numberDiff line change
@@ -1525,6 +1525,7 @@ The following example separates the code into functional sections: Constants, de
15251525
* Define `waitForAndFindElement`.
15261526
* Use `console.log()` to organize the script log and pin down issues with assert failures or timeouts.
15271527
* Handle errors with a try/catch block that throws a useful error message identifying the failure step.
1528+
* Allows use of top level `await` because we run the entire script inside an async function behind the scenes.
15281529

15291530
```js
15301531
/**

0 commit comments

Comments
 (0)