summaryrefslogtreecommitdiff
path: root/src/cmd/internal/gc/syntax.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2015-03-20 10:47:52 -0700
committerRob Pike <r@golang.org>2015-03-20 19:57:45 +0000
commit11dba2ec2d8fcedc1da0103925c254586ef51120 (patch)
tree1d66a39e3293847dae8d3c52d7237fce58338318 /src/cmd/internal/gc/syntax.go
parent3f12d271335abc9d49d419247528cf286a04f9a6 (diff)
downloadgo-git-11dba2ec2d8fcedc1da0103925c254586ef51120.tar.gz
html/template: fix crash when escaping incomplete template
text/template turned this into an error but html/template crashed. Refactor text/template.Execute to export a new function, text/template.DefinedTemplates, so html/template can get the same helpful error message in this case, and invoke it when there is no definition for a template being escaped. Fixes #10204. Change-Id: I1d04e9e7ebca829bc08509caeb65e75da969711f Reviewed-on: https://go-review.googlesource.com/7855 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/internal/gc/syntax.go')
0 files changed, 0 insertions, 0 deletions