don't throw error on undefined/null trusted vnode #1375

This commit is contained in:
Leo Horie 2016-10-28 09:51:07 -04:00
parent 70e0f8e66d
commit 65b4116666
2 changed files with 13 additions and 0 deletions

View file

@ -3,5 +3,6 @@
var Vnode = require("../render/vnode")
module.exports = function(html) {
if (html == null) html = ""
return Vnode("<", undefined, undefined, html, undefined, undefined)
}