go/api/next
Russ Cox 1af60b2f49 regexp/syntax: add and use ErrInvalidDepth
The fix for #51112 introduced a depth check but used
ErrInternalError to avoid introduce new API in a CL that
would be backported to earlier releases.

New API accepted in proposal #51684.

This CL adds a distinct error for this case.

For #51112.
Fixes #51684.

Change-Id: I068fc70aafe4218386a06103d9b7c847fb7ffa65
Reviewed-on: https://go-review.googlesource.com/c/go/+/384617
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-04-04 10:59:27 +00:00
..
45628.txt encoding/xml: expose decoder line and column 2022-03-27 20:26:46 +00:00
45754.txt cmd/api: require proposal # for new API features 2022-03-14 21:43:16 +00:00
46059.txt cmd/api: require proposal # for new API features 2022-03-14 21:43:16 +00:00
46121.txt html/template: make FuncMap a type alias of text/template.FuncMap 2022-03-31 00:54:34 +00:00
47005.txt cmd/api: require proposal # for new API features 2022-03-14 21:43:16 +00:00
50601.txt cmd/api: require proposal # for new API features 2022-03-14 21:43:16 +00:00
51414.txt time: add Duration.Abs 2022-03-27 20:23:17 +00:00
51868.txt debug/pe: add APIs for reading section def aux info 2022-03-31 14:57:35 +00:00
regexpdepth.txt regexp/syntax: add and use ErrInvalidDepth 2022-04-04 10:59:27 +00:00