]> git.kaiwu.me - njs.git/log
njs.git
10 years agoRegExp updates.
Igor Sysoev [Wed, 18 Nov 2015 12:46:02 +0000 (15:46 +0300)]
RegExp updates.

10 years agoTrap changes.
Igor Sysoev [Wed, 18 Nov 2015 12:45:58 +0000 (15:45 +0300)]
Trap changes.

10 years agoChanges in byte string operations.
Igor Sysoev [Wed, 18 Nov 2015 12:45:52 +0000 (15:45 +0300)]
Changes in byte string operations.

String.bytes property is changed to String.toBytes() method.
The method serializes an Unicode string to a byte string.
It returns null if a character larger than 255 is encountered
in the Unicode string.
String.fromBytes() method converts a byte string to an Unicode string.
String.utf8 property is converted to String.fromUTF8() method.
The method converts an UTF-8 encoded byte string to an Unicode string.
String.toUTF8() serializes Unicode string to an UTF-8 encoded byte string.

10 years agoSupport of escape sequences inside strings: "\uXXXX", "\xXX",
Igor Sysoev [Wed, 18 Nov 2015 12:45:35 +0000 (15:45 +0300)]
Support of escape sequences inside strings: "\uXXXX", "\xXX",
"\u{X}, "\r\n", string continuations, etc.

10 years agoStyle and small miscellaneous fixes.
Igor Sysoev [Wed, 18 Nov 2015 12:31:25 +0000 (15:31 +0300)]
Style and small miscellaneous fixes.

10 years agonJSVM clone/destroy benchmark was added to nJS unit test.
Igor Sysoev [Wed, 18 Nov 2015 04:28:42 +0000 (07:28 +0300)]
nJSVM clone/destroy benchmark was added to nJS unit test.
The fibo benchmarks were updated.

10 years agoThe first invalid token did return SyntaxError exception.
Igor Sysoev [Tue, 17 Nov 2015 14:26:27 +0000 (17:26 +0300)]
The first invalid token did return SyntaxError exception.
Empty script now returns SyntaxError exception.

10 years agonjs_vmcode_addition() does not use njs_string_prototype_concat().
Igor Sysoev [Fri, 30 Oct 2015 13:22:37 +0000 (16:22 +0300)]
njs_vmcode_addition() does not use njs_string_prototype_concat().

10 years agonxt_vector interface was renamed to nxt_array.
Igor Sysoev [Fri, 30 Oct 2015 13:22:29 +0000 (16:22 +0300)]
nxt_vector interface was renamed to nxt_array.

10 years agoFixed example in README.
Roman Arutyunyan [Thu, 24 Sep 2015 13:20:33 +0000 (16:20 +0300)]
Fixed example in README.

10 years agoFixed ngx_http_js_loc_conf_t initialization.
Sergey Kandaurov [Wed, 23 Sep 2015 11:20:13 +0000 (14:20 +0300)]
Fixed ngx_http_js_loc_conf_t initialization.

It is expected to be prezeroed.

10 years agonJS should be built by the same compiler as nginx.
Roman Arutyunyan [Wed, 23 Sep 2015 13:26:41 +0000 (16:26 +0300)]
nJS should be built by the same compiler as nginx.

10 years agoFixed Solaris build.
Roman Arutyunyan [Wed, 23 Sep 2015 12:01:24 +0000 (15:01 +0300)]
Fixed Solaris build.

10 years agoInitial import of nJScript.
Igor Sysoev [Wed, 23 Sep 2015 00:31:27 +0000 (03:31 +0300)]
Initial import of nJScript.