]> Cypherpunks repositories - gostls13.git/commit
text/template: resolve non-empty interface
authorNodir Turakulov <nodir@google.com>
Wed, 14 Oct 2015 02:09:32 +0000 (19:09 -0700)
committerAndrew Gerrand <adg@golang.org>
Thu, 15 Oct 2015 05:02:27 +0000 (05:02 +0000)
commit167a7123997c42e91d69de2203fc4c156897f0a2
treefaad77e26c53585413e6f65463fcdaf58a1fc73e
parent65fc379daeda784d085f98d621a9ab712c096148
text/template: resolve non-empty interface

Read what a non-empty interface points to.

The deleted lines were added in https://codereview.appspot.com/4810060/,
which attempted to break an infinite loop. That was a long time ago.
If I just delete these lines with current codebase, the test "bug1"
(added in that CL) does not fail.

All new tests fail without this fix.

Fixes #12924

Change-Id: I9370ca44facd6af3019850aa065b936e5a482d37
Reviewed-on: https://go-review.googlesource.com/15809
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/text/template/exec.go
src/text/template/exec_test.go