Skip to content

Instantly share code, notes, and snippets.

View xeioex's full-sized avatar

Dmitry Volyntsev xeioex

View GitHub Profile
# HG changeset patch
# User Dmitry Volyntsev <[email protected]>
# Date 1548697937 -10800
# Mon Jan 28 20:52:17 2019 +0300
# Node ID 7343520d774cfae37f686f9d3995eca756f1db5a
# Parent 23df46c40a53170972500ee902cfa9850dc3ca2e
Renaming nxt_mem_cache_pool_t related structures and fields.
nxt_mem_cache_pool_t -> nxt_mp_t.
nxt_mem_cache_* -> nxt_mp_*.
# HG changeset patch
# User hongzhidao <[email protected]>
# Date 1549094499 -28800
# Sat Feb 02 16:01:39 2019 +0800
# Node ID d57755edf40bbbc2d3cc10c6d7841b8a8dc34a44
# Parent 596d26bb5feabb5c7be1ca84f889eb4b185a02bf
Introduced njs_vm_invoke().
diff --git a/njs/njs.c b/njs/njs.c
--- a/njs/njs.c
# HG changeset patch
# User hongzhidao <[email protected]>
# Date 1549292425 -28800
# Mon Feb 04 23:00:25 2019 +0800
# Node ID 0345529657fcd8ea901f8a13bb94852d225ae5c0
# Parent 6c66f34a89b9c1229f0a3c80cfd3a3e01f802c8a
Using nxt_sprintf() instead of sprintf() in backtraces.
diff --git a/njs/njs_builtin.c b/njs/njs_builtin.c
--- a/njs/njs_builtin.c
# HG changeset patch
# User hongzhidao <[email protected]>
# Date 1549299198 -28800
# Tue Feb 05 00:53:18 2019 +0800
# Node ID 62893d7c2f3427c8a9a7af3cd8f677b58ba7fd55
# Parent 1568a0d46b0dbaf3702e3c43a18ac44d6782217b
Reporting filename in generator errors.
diff --git a/njs/njs_generator.c b/njs/njs_generator.c
--- a/njs/njs_generator.c
# HG changeset patch
# User Dmitry Volyntsev <[email protected]>
# Date 1549636866 -10800
# Fri Feb 08 17:41:06 2019 +0300
# Node ID a6737eef8a6477b6647cccf87dcef839d9581fd5
# Parent 2feb1b5a210db571be3bcc811e68161c7d755f3f
Removing unused argument of njs_parser_property_name().
diff --git a/njs/njs_parser.c b/njs/njs_parser.c
--- a/njs/njs_parser.c
# HG changeset patch
# User Dmitry Volyntsev <[email protected]>
# Date 1549649826 -10800
# Fri Feb 08 21:17:06 2019 +0300
# Node ID 964ddb99f52d383b9e3f024bab64501c73da8eb8
# Parent 4e8940c1bef19a4b0a4e6d5206b3884f42739126
Added support for shorthand property names for Object literals.
diff --git a/njs/njs_lexer.c b/njs/njs_lexer.c
--- a/njs/njs_lexer.c
# HG changeset patch
# User hongzhidao <[email protected]>
# Date 1549700768 -28800
# Sat Feb 09 16:26:08 2019 +0800
# Node ID 08285ce7dd7c372869a29e317109235045028a90
# Parent 4e8940c1bef19a4b0a4e6d5206b3884f42739126
Improved njs_parser_property_token().
diff --git a/njs/njs_parser.c b/njs/njs_parser.c
--- a/njs/njs_parser.c
diff --git a/njs/njs.c b/njs/njs.c
--- a/njs/njs.c
+++ b/njs/njs.c
@@ -339,8 +339,9 @@ njs_vm_clone(njs_vm_t *vm, njs_external_
nvm->variables_hash = vm->variables_hash;
nvm->values_hash = vm->values_hash;
+
+ nvm->modules = vm->modules;
nvm->modules_hash = vm->modules_hash;
# HG changeset patch
# User Dmitry Volyntsev <[email protected]>
# Date 1550081459 -10800
# Wed Feb 13 21:10:59 2019 +0300
# Node ID ee25177ce448004e6c07cf504cc23c32fb309cc9
# Parent 03be823cd95bd3508e8a52dcef73aab763ff713a
Fixed parsing of string literals.
This closes #93 issue on Github.
# HG changeset patch
# User Dmitry Volyntsev <[email protected]>
# Date 1550146862 -10800
# Thu Feb 14 15:21:02 2019 +0300
# Node ID 3852b2044dfd77d98525488b91fa9b2d613f8585
# Parent 2a425a8ea90fc13f50786b0d5a4720cec75550d6
Fixed line number in reporting variable reference errors.
This closes #94 issue on Github.