-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest-error-ref.err
30 lines (27 loc) · 934 Bytes
/
test-error-ref.err
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
test/test.lua:29: error: attempt to index a nil value (global 'x')
test/test.lua:29:
24 |
25 | -- buggy function to test error messages
26 | function bar()
27 | local t = {}
28 | for i = 1, 10 do
29 => t[i] = x[i]
30 | end
31 | return t
32 | end
[string "..."]:11:
6 | -- quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
7 |
8 | -- only a context of 5 lines shall be printed in error messages
9 | function foo()
10 | -- call bar from test.lua that should raise a runtime error
11 => bar()
12 | end
13 |
14 | -- Lorem ipsum dolor sit amet, consectetur adipiscing elit,
15 | -- sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
16 | -- Ut enim ad minim veniam,
[string "..."]:3:
1 |
2 | -- call foo from another chunk
3 => foo()