]> git.kaiwu.me - njs.git/commit
MemoryError reimplemented without its own prototype.
authorDmitry Volyntsev <xeioex@nginx.com>
Mon, 20 Nov 2017 16:24:58 +0000 (19:24 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Mon, 20 Nov 2017 16:24:58 +0000 (19:24 +0300)
commit30ff5e85aeab95dc58948f3b013fd14630103af8
treef108ebd2f64daa26b7776a6ae304a61057c9cc7a
parent51a2637226e6131bfd3ac60b295c31823ae3947d
MemoryError reimplemented without its own prototype.

MemoryError is a special preallocated immutable object.  Its value type
is NJS_OBJECT_INTERNAL_ERROR. Initially the object had its own prototype
object.  It introduced inconsistency between value types and prototype
types, because some routines (for example, njs_object_prototype_to_string())
expect them to be pairwise aligned.
njs/njs_builtin.c
njs/njs_error.c
njs/njs_error.h
njs/njs_vm.h
njs/test/njs_unit_test.c