diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-10-19 17:52:07 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-10-19 23:36:05 +0200 |
commit | 3edf942ac85a90707e57d9e251004459aa6b4cea (patch) | |
tree | c47c2068b22ecbe4683a76807ca6fbf266f34b0f /tests/02_runtime | |
parent | 1149ffa23be8ff4059f75068c9e36cfda52a71f8 (diff) |
eval: record correct source contexts in call stack
Also handle calls to C functions.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/02_runtime')
-rw-r--r-- | tests/02_runtime/04_switch_case | 2 | ||||
-rw-r--r-- | tests/02_runtime/06_recursion | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/02_runtime/04_switch_case b/tests/02_runtime/04_switch_case index d3f6c94..0de87dc 100644 --- a/tests/02_runtime/04_switch_case +++ b/tests/02_runtime/04_switch_case @@ -243,7 +243,7 @@ one -- Expect stderr -- Died In test(), line 6, byte 7: - at main function ([stdin]:17:12) + called from anonymous function ([stdin]:17:12) ` die();` Near here -----^ diff --git a/tests/02_runtime/06_recursion b/tests/02_runtime/06_recursion index 028feba..b222640 100644 --- a/tests/02_runtime/06_recursion +++ b/tests/02_runtime/06_recursion @@ -40,8 +40,7 @@ Testing recursive invocations. -- Expect stderr -- Runtime error: Too much recursion In test(), line 3, byte 7: - at function test ([stdin]:3:7) - at main function ([stdin]:6:6) + called from anonymous function ([stdin]:6:6) ` test();` Near here --^ |