forked from google/starlark-go
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
starlark: return EvalErr for errors originating in built-ins (google#188
) Previously, only errors originating in Starlark code would be represented as EvalErr. The backtrace would include frames for built-in functions that the exception passed through, but not for the originating frame. Also, report "<builtin>" not "<builtin>:1" for the position of such frames. Position.Line==0 no longer implies !IsValid. Clients cannot rely on valid position strings containing a colon. Added test of errors originating in a built-in frame.
- Loading branch information
Showing
4 changed files
with
64 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters