]> code.delx.au - gnu-emacs-elpa/commit
Fix js2-node-get-enclosing-scope
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sun, 1 Mar 2015 07:23:23 +0000 (23:23 -0800)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sun, 1 Mar 2015 07:31:25 +0000 (23:31 -0800)
commit3b765677df64dd1ec5692b52cf6382910ccf293b
tree93b2730827569cb49ea7900e54b98def265f07ee
parent90a905698cebcb9ce3adae86ab4d6733c511c831
Fix js2-node-get-enclosing-scope

Previously this function discriminated against nodes that did not have
parents.  For such nodes, nil should have been returned, but instead an
error was emitted because a parentless node would produce the initial
parent nil, which would cause js2-node-parent to blow up.  This fixes
that.
js2-mode.el