<div dir="ltr">yep, happy new year.<div><br></div><div>i found anthoer bug.</div><div><br></div><div><div>js_run "</div><div> function foo()</div><div> {</div><div> return 'bug while there is empty statement such ; after return statement';</div><div> }</div><div> ";</div></div><div><br></div><div>i think in the source:</div><div>njs/njs_parser.c/njs_parser_function_lambda: 520<br></div><div><br></div><div><div>/*</div><div> * There is no function body or the last function body statement is not</div><div> * "return" statement. If function has body then the body->right node is</div><div> * always present and it is a NJS_TOKEN_STATEMENT link node.</div><div> */</div><div> body = parser->node;</div></div><div><br></div><div>if function has body but the last statement is empty such simicolon, the body->right node is also null.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-03 1:34 GMT+08:00 Igor Sysoev <span dir="ltr"><<a href="mailto:igor@sysoev.ru" target="_blank">igor@sysoev.ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class="">On 02 Jan 2016, at 17:17, 洪志道 <<a href="mailto:hongzhidao@gmail.com" target="_blank">hongzhidao@gmail.com</a>> wrote:<br></span><div><br><blockquote type="cite"><div dir="ltr"><span class=""><div>js_set $bar "</div><div> $r.error = "this will cause coredump file since ext->set is null";</div></span><div>“;</div></div></blockquote><br></div><div>Thank you, I will this after new year vacation.</div><span class="HOEnZb"><font color="#888888"><div><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><br><br>-- <br>Igor Sysoev<br><a href="http://nginx.com" target="_blank">http://nginx.com</a></div></div></div>
</div>
<br></font></span></div><br>_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br></blockquote></div><br></div>