fix crash on missing `props` to `string_template()` (#1523)
authorAlex Lam S.L <alexlamsl@gmail.com>
Wed, 1 Mar 2017 07:25:26 +0000 (15:25 +0800)
committerGitHub <noreply@github.com>
Wed, 1 Mar 2017 07:25:26 +0000 (15:25 +0800)
commitc2334baa4813bdde21d5a652de0c9da3733d06b6
tree5063101bcbc07c6e5e28730bbb734c63c91f081f
parentfb2b6c7c6f8ddc616d43201eec6e01dfa52a7c6a
fix crash on missing `props` to `string_template()` (#1523)

Patched up `make_node()` without `orig`.

There may be other cases where `start` could be missing, so make it print "undefined" instead of crashing.

fixes #1518
lib/compress.js
lib/utils.js