Segmentation fault protection: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: e01->test) |
m (→{{header|Wren}}: Minor edit to example.) |
||
Line 54: | Line 54: | ||
So the example code below compiles: |
So the example code below compiles: |
||
<lang ecmascript>var myArray = [1,2, 3, 4, 5, 6] |
<lang ecmascript>var myArray = [1, 2, 3, 4, 5, 6] |
||
var myVariable = myArray[500]</lang> |
var myVariable = myArray[500]</lang> |
||
but if you try to run it you get a "Subscript out of bounds" error. |
but if you try to run it you get a "Subscript out of bounds" error. |