From: hongzhidao Date: Fri, 1 Feb 2019 11:48:30 +0000 (+0800) Subject: Simplified parser builtin function. X-Git-Tag: 0.2.8~53 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=ef7f3f20ef25cc2d8578fe739a89e2500e666841;p=njs.git Simplified parser builtin function. --- diff --git a/njs/njs_parser.c b/njs/njs_parser.c index 2abd423b..bd767a86 100644 --- a/njs/njs_parser.c +++ b/njs/njs_parser.c @@ -2095,8 +2095,6 @@ njs_parser_builtin_object(njs_vm_t *vm, njs_parser_t *parser, return NJS_TOKEN_ERROR; } - node->scope = parser->scope; - parser->node = node; return njs_parser_token(parser); @@ -2139,8 +2137,6 @@ njs_parser_builtin_function(njs_vm_t *vm, njs_parser_t *parser, return NJS_TOKEN_ERROR; } - node->scope = parser->scope; - parser->node = node; return njs_parser_token(parser); diff --git a/njs/njs_variable.c b/njs/njs_variable.c index 6bc8892c..0a364363 100644 --- a/njs/njs_variable.c +++ b/njs/njs_variable.c @@ -132,7 +132,6 @@ njs_variable_reference(njs_vm_t *vm, njs_parser_scope_t *scope, ret = njs_name_copy(vm, &vr->name, name); if (nxt_fast_path(ret == NXT_OK)) { - node->scope = scope; vr->hash = hash; vr->type = type;