mirror of
https://github.com/golang/go
synced 2024-11-18 12:34:42 -07:00
c9c885f92f
This change undoes the restrictions added in CL 482079, which added a blanket ban on using actions within JS template literal strings, and adds logic to support actions while properly applies contextual escaping based on the correct context within the literal. Since template literals can contain both normal strings, and nested JS contexts, logic is required to properly track those context switches during parsing. ErrJsTmplLit is deprecated, and the GODEBUG flag jstmpllitinterp no longer does anything. Fixes #61619 Change-Id: I0338cc6f663723267b8f7aaacc55aa28f60906f2 Reviewed-on: https://go-review.googlesource.com/c/go/+/507995 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Roland Shoemaker <roland@golang.org> Reviewed-by: Damien Neil <dneil@google.com> |
||
---|---|---|
.. | ||
50102.txt | ||
51246.txt | ||
51971.txt | ||
53693.txt | ||
54898.txt | ||
56353.txt | ||
58000.txt | ||
59599.txt | ||
60061.txt | ||
60088.txt | ||
60204.txt | ||
60370.txt | ||
61410.txt | ||
61619.txt | ||
61642.txt | ||
61758.txt | ||
61974.txt |