Permalink
Browse files

Forcing an undefined text argument into an empty string

  • Loading branch information...
1 parent 9e3fd81 commit 34fb092db3fff6d3b95a361dea4c21b63b8553c9 @redsquirrel redsquirrel committed May 19, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/haml.js
View
@@ -459,6 +459,7 @@ var Haml;
function render(text, options) {
options = options || {};
+ text = text || "";
var js = compile(text);
if (options.optimize) {
js = Haml.optimize(js);

0 comments on commit 34fb092

Please sign in to comment.