]> git.kaiwu.me - njs.git/log
njs.git
10 years agoSegfault has been fixed when global frame was skipped on
Igor Sysoev [Thu, 14 Jan 2016 08:36:33 +0000 (11:36 +0300)]
Segfault has been fixed when global frame was skipped on
function return because of uninitialized frame skip flag.
Thanks to 洪志道 (Hong Zhi Dao).

10 years agoSegfaults are fixed when non-existent external object property was
Igor Sysoev [Wed, 13 Jan 2016 16:11:36 +0000 (19:11 +0300)]
Segfaults are fixed when non-existent external object property was
accessed or when existent property does not support operation.

10 years agoSegfault is fixed when script is terminated by unbalanced
Igor Sysoev [Tue, 12 Jan 2016 17:09:33 +0000 (20:09 +0300)]
Segfault is fixed when script is terminated by unbalanced
closing brace.

10 years agoSegfault is fixed when the last return in function is terminated
Igor Sysoev [Tue, 12 Jan 2016 16:47:29 +0000 (19:47 +0300)]
Segfault is fixed when the last return in function is terminated
by semicolon.

10 years ago2016 year.
Igor Sysoev [Sat, 2 Jan 2016 17:41:21 +0000 (20:41 +0300)]
2016 year.

10 years agoObject to external string convertion.
Igor Sysoev [Sun, 27 Dec 2015 12:26:11 +0000 (15:26 +0300)]
Object to external string convertion.

10 years agoObject to primitive value convertion traps have been fixed.
Igor Sysoev [Sun, 27 Dec 2015 12:26:08 +0000 (15:26 +0300)]
Object to primitive value convertion traps have been fixed.

10 years agoFunctions rearrangement.
Igor Sysoev [Sun, 27 Dec 2015 12:26:06 +0000 (15:26 +0300)]
Functions rearrangement.

10 years agoStyle and small miscellaneous fixes.
Igor Sysoev [Sun, 27 Dec 2015 12:26:04 +0000 (15:26 +0300)]
Style and small miscellaneous fixes.

10 years agoFixed building on some 32-bit platforms.
Igor Sysoev [Sun, 27 Dec 2015 12:24:13 +0000 (15:24 +0300)]
Fixed building on some 32-bit platforms.

10 years agoThe "break" and "continue" statements did not work on big endian
Igor Sysoev [Sun, 27 Dec 2015 12:23:57 +0000 (15:23 +0300)]
The "break" and "continue" statements did not work on big endian
platforms.

10 years agoChange of special return values handled by nJSVM interpreter.
Igor Sysoev [Wed, 23 Dec 2015 07:23:45 +0000 (10:23 +0300)]
Change of special return values handled by nJSVM interpreter.

10 years agoThe "switch" statement.
Igor Sysoev [Tue, 15 Dec 2015 17:17:10 +0000 (20:17 +0300)]
The "switch" statement.

10 years agoSupport of "continue" and "break" statements without labels
Igor Sysoev [Tue, 15 Dec 2015 13:46:00 +0000 (16:46 +0300)]
Support of "continue" and "break" statements without labels
in loops.

10 years agoComma expressions, statement sequences, and njs_vmcode_stop
Igor Sysoev [Tue, 15 Dec 2015 13:45:56 +0000 (16:45 +0300)]
Comma expressions, statement sequences, and njs_vmcode_stop
changes.

10 years agoArray enumeration changes.
Igor Sysoev [Sat, 12 Dec 2015 21:00:40 +0000 (00:00 +0300)]
Array enumeration changes.

10 years agoProperty enumeration changes.
Igor Sysoev [Sat, 12 Dec 2015 21:00:30 +0000 (00:00 +0300)]
Property enumeration changes.

10 years agoCode generator updates.
Igor Sysoev [Sat, 12 Dec 2015 21:00:21 +0000 (00:00 +0300)]
Code generator updates.

10 years ago"var" statement fixed.
Igor Sysoev [Fri, 11 Dec 2015 15:41:40 +0000 (18:41 +0300)]
"var" statement fixed.

10 years agoparam->object was changed to param->this.
Igor Sysoev [Fri, 11 Dec 2015 15:41:30 +0000 (18:41 +0300)]
param->object was changed to param->this.

10 years agoArray.toString() fixed.
Igor Sysoev [Fri, 11 Dec 2015 15:41:20 +0000 (18:41 +0300)]
Array.toString() fixed.

10 years agoRiddance of NJS_NATIVE type.
Igor Sysoev [Fri, 11 Dec 2015 15:41:10 +0000 (18:41 +0300)]
Riddance of NJS_NATIVE type.

10 years agoFunctions refactored.
Igor Sysoev [Fri, 11 Dec 2015 15:41:00 +0000 (18:41 +0300)]
Functions refactored.

10 years agoThe "return" statement without arguments fixed.
Igor Sysoev [Mon, 7 Dec 2015 08:59:33 +0000 (11:59 +0300)]
The "return" statement without arguments fixed.

10 years agoBuiltin objects refactored.
Igor Sysoev [Sat, 28 Nov 2015 09:18:10 +0000 (12:18 +0300)]
Builtin objects refactored.

10 years agoStyle and small miscellaneous fixes.
Igor Sysoev [Wed, 25 Nov 2015 14:22:45 +0000 (17:22 +0300)]
Style and small miscellaneous fixes.

10 years agonJSVM disassembler changes.
Igor Sysoev [Wed, 25 Nov 2015 14:22:41 +0000 (17:22 +0300)]
nJSVM disassembler changes.

10 years agoeval() placeholders update.
Igor Sysoev [Mon, 23 Nov 2015 19:37:01 +0000 (22:37 +0300)]
eval() placeholders update.

10 years agoString.toString() and String.valueOf() methods.
Igor Sysoev [Mon, 23 Nov 2015 19:36:59 +0000 (22:36 +0300)]
String.toString() and String.valueOf() methods.

10 years ago"instanceof" fixes.
Igor Sysoev [Mon, 23 Nov 2015 19:36:56 +0000 (22:36 +0300)]
"instanceof" fixes.

10 years agoBoolean objects support.
Igor Sysoev [Mon, 23 Nov 2015 19:36:52 +0000 (22:36 +0300)]
Boolean objects support.

10 years ago__proto__ property fixes.
Igor Sysoev [Mon, 23 Nov 2015 19:34:24 +0000 (22:34 +0300)]
__proto__ property fixes.

10 years agoEmpty array elements support.
Igor Sysoev [Mon, 23 Nov 2015 12:35:49 +0000 (15:35 +0300)]
Empty array elements support.

10 years agoUsing pcre_free() instead of pcre_free_study().
Igor Sysoev [Thu, 19 Nov 2015 15:00:33 +0000 (18:00 +0300)]
Using pcre_free() instead of pcre_free_study().
Other regexp small miscellaneous fixes.

10 years agoA cloned nJSVM is destroyed after each unit test.
Igor Sysoev [Wed, 18 Nov 2015 16:22:02 +0000 (19:22 +0300)]
A cloned nJSVM is destroyed after each unit test.

10 years agoFine grain header files inclusions and fixed build dependencies.
Igor Sysoev [Wed, 18 Nov 2015 16:21:58 +0000 (19:21 +0300)]
Fine grain header files inclusions and fixed build dependencies.

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.