From ec7a964dca57821d2d7a36f168c2355a46a76ca2 Mon Sep 17 00:00:00 2001 From: hsbt Date: Tue, 15 Dec 2015 07:20:07 +0000 Subject: * lib/erb.rb: Render erb with array buffer for function call optimization. [fix GH-1143] * lib/rdoc/erb_partial.rb: ditto. * template/verconf.h.tmpl: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/erb_partial.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rdoc') diff --git a/lib/rdoc/erb_partial.rb b/lib/rdoc/erb_partial.rb index 910d1e0351..8359258d27 100644 --- a/lib/rdoc/erb_partial.rb +++ b/lib/rdoc/erb_partial.rb @@ -11,7 +11,7 @@ class RDoc::ERBPartial < ERB def set_eoutvar compiler, eoutvar = '_erbout' super - compiler.pre_cmd = ["#{eoutvar} ||= ''"] + compiler.pre_cmd = ["#{eoutvar} ||= []"] end end -- cgit v1.2.3