mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
Ignore errors from builtin functions in non strict mode (#154)
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
22047287b4
commit
10f2caf0c0
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
cases:
|
||||
- note: builtin error gobbled up in non strict mode
|
||||
modules:
|
||||
- |
|
||||
package test
|
||||
a = to_number("abc")
|
||||
query: data.test
|
||||
want_result: {}
|
||||
strict: false
|
||||
|
||||
- note: builtin error in strict mode
|
||||
modules:
|
||||
- |
|
||||
package test
|
||||
a = to_number("abc")
|
||||
query: data.test
|
||||
error: "could not parse string as number"
|
||||
Reference in New Issue
Block a user