Skip to content

Commit bdff819

Browse files
Update and rename docs/throwFunction.md to docs/developers/core/throwFunction.md
Remove comments.
1 parent 316f4f8 commit bdff819

2 files changed

Lines changed: 12 additions & 19 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Throw function
2+
3+
The throw function throws a value written in the problems pane, similar to the throw syntax.
4+
```
5+
pxt.throwValue(null);
6+
```
7+
8+
The difference is that the function is the core of the syntax in the MakeCode environment.
9+
10+
Here is the shim for getting the function.
11+
12+
`//% shim=pxt::throwValue`

docs/throwFunction.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)