>>> njs: Building community/njs 1.0.2-r3 (using abuild 3.18.0-r0) started Tue, 01 Dec 2026 19:57:17 +0000 >>> njs: Validating /home/buildozer/aports/community/njs/APKBUILD... >>> njs: Analyzing dependencies... >>> njs: Installing for build: build-base libedit-dev openssl-dev pcre2-dev quickjs-ng-dev expect ( 1/18) Installing bsd-compat-headers (0.7.2-r6) ( 2/18) Installing libformw (6.6_p20261114-r0) ( 3/18) Installing libmenuw (6.6_p20261114-r0) ( 4/18) Installing libpanelw (6.6_p20261114-r0) ( 5/18) Installing libncurses++ (6.6_p20261114-r0) ( 6/18) Installing ncurses-dev (6.6_p20261114-r0) ( 7/18) Installing libedit-dev (20260512.3.1-r0) ( 8/18) Installing openssl-dev (3.5.10-r0) ( 9/18) Installing zlib-dev (1.4-r0) (10/18) Installing libpcre2-16 (10.49-r0) (11/18) Installing libpcre2-32 (10.49-r0) (12/18) Installing pcre2-dev (10.49-r0) (13/18) Installing quickjs-ng-libs (0.18.0-r2) (14/18) Installing quickjs-ng-dev (0.18.0-r2) (15/18) Installing tzdata (2026f-r0) (16/18) Installing tcl (8.6.18-r0) (17/18) Installing expect (5.45.4-r5) (18/18) Installing .makedepends-njs (20261201.195717) Executing busybox-1.38.0-r9.trigger OK: 281.5 MiB in 121 packages >>> njs: Cleaning up srcdir >>> njs: Cleaning up pkgdir >>> njs: Cleaning up tmpdir >>> njs: Fetching https://distfiles.alpinelinux.org/distfiles/edge/njs-1.0.2.tar.gz /var/cache/distfiles/njs-1.0.2.tar.gz: OK /home/buildozer/aports/community/njs/no-werror.patch: OK /home/buildozer/aports/community/njs/shared-lib.patch: OK /home/buildozer/aports/community/njs/njs.pc: OK /home/buildozer/aports/community/njs/4ee6f12facd274f2c1202c1bf9edbb24aa64c2d0.patch: OK /home/buildozer/aports/community/njs/libqjs-0.18-compat.patch: OK /home/buildozer/aports/community/njs/test-math-tanh-epsilon.patch: OK >>> njs: Fetching https://distfiles.alpinelinux.org/distfiles/edge/njs-1.0.2.tar.gz /var/cache/distfiles/njs-1.0.2.tar.gz: OK /home/buildozer/aports/community/njs/no-werror.patch: OK /home/buildozer/aports/community/njs/shared-lib.patch: OK /home/buildozer/aports/community/njs/njs.pc: OK /home/buildozer/aports/community/njs/4ee6f12facd274f2c1202c1bf9edbb24aa64c2d0.patch: OK /home/buildozer/aports/community/njs/libqjs-0.18-compat.patch: OK /home/buildozer/aports/community/njs/test-math-tanh-epsilon.patch: OK >>> njs: Unpacking /var/cache/distfiles/njs-1.0.2.tar.gz... >>> njs: no-werror.patch patching file auto/cc >>> njs: shared-lib.patch patching file auto/make Hunk #1 succeeded at 120 (offset 1 line). >>> njs: 4ee6f12facd274f2c1202c1bf9edbb24aa64c2d0.patch patching file src/njs_generator.c patching file src/njs_parser.c patching file src/njs_parser.h patching file src/njs_variable.c patching file src/njs_variable.h >>> njs: libqjs-0.18-compat.patch patching file external/njs_crypto_module.c patching file external/njs_fs_module.c patching file external/njs_shell.c patching file external/njs_webcrypto_module.c patching file external/njs_xml_module.c patching file external/njs_zlib_module.c patching file external/qjs_crypto_module.c patching file external/qjs_fs_module.c patching file external/qjs_webcrypto_module.c patching file external/qjs_xml_module.c patching file external/qjs_zlib_module.c patching file nginx/ngx_http_js_module.c patching file nginx/ngx_js.c patching file nginx/ngx_js_fetch.c patching file nginx/ngx_js_shared_dict.c patching file nginx/ngx_qjs_fetch.c patching file nginx/ngx_stream_js_module.c patching file src/qjs.c patching file src/qjs.h patching file test/fs/readdir.t.mjs patching file test/zlib.t.mjs patching file external/qjs_webcrypto_module.c patching file external/qjs_crypto_module.c patching file external/qjs_fs_module.c patching file external/qjs_webcrypto_module.c patching file external/njs_webcrypto_module.c patching file external/qjs_webcrypto_module.c patching file test/webcrypto/import.t.mjs >>> njs: test-math-tanh-epsilon.patch patching file src/test/njs_unit_test.c configuring for Linux 6.18.33-0-lts loongarch64 checking for C compiler: cc + using GNU C compiler + gcc version 15.2.0 (Alpine 15.2.0) checking for -Wl,-E ... checking for sizeof(int) ... 4 checking for sizeof(u_int) ... 4 checking for sizeof(void *) ... 8 checking for sizeof(uintptr_t) ... 8 checking for sizeof(size_t) ... 8 checking for sizeof(off_t) ... 8 checking for sizeof(time_t) ... 8 checking for system byte ordering ... little checking for GCC __builtin_expect() ... found checking for GCC __builtin_unreachable() ... found checking for GCC __builtin_prefetch() ... found checking for GCC __builtin_clz() ... found checking for GCC __builtin_clzll() ... found checking for GCC __attribute__ visibility ... found checking for GCC __attribute__ malloc ... found checking for GCC __attribute__ aligned ... found checking for GCC __attribute__ packed ... found checking for GCC __attribute__ fallthrough ... found checking for GCC __attribute__ no_sanitize ... found checking for Address sanitizer ... not found checking for Memory sanitizer ... not found checking for clock_gettime(CLOCK_MONOTONIC) ... found checking for struct tm.tm_gmtoff ... found checking for altzone ... not found checking for posix_memalign() ... found checking for getrandom() ... found checking for stat.st_atimespec ... not found checking for stat.st_birthtim ... not found checking for stat.__st_birthtim ... not found checking for stat.st_atim ... found checking for Computed goto ... found checking for explicit_bzero() ... found checking for PCRE2 library ... not found checking for PCRE2 library in /usr ... found checking for PCRE2 version ... 10.49 checking for editline library in editline/readline.h ... found checking for QuickJS library -lquickjs.lto ... not found checking for QuickJS library -lquickjs ... not found checking for QuickJS library -I/usr/include/quickjs/ -L/usr/lib/quickjs/ -lquickjs.lto ... not found checking for QuickJS library -I/usr/include/quickjs/ -L/usr/lib/quickjs/ -lquickjs ... not found checking for QuickJS-NG library via pkg-config ... found checking for QuickJS JS_GetClassID() ... found checking for QuickJS JS_NewTypedArray() ... found checking for QuickJS JS_IsSameValue() ... found checking for QuickJS JS_IsArray() ... found checking for QuickJS JS_IsError() ... found checking for QuickJS JS_AddIntrinsicBigInt() ... found checking for QuickJS JS_NewArrayBuffer() with max_len ... found checking for QuickJS version ... "0.18.0" checking for OpenSSL library ... not found checking for OpenSSL library -lcrypto ... found checking for EVP_aes_128_wrap() ... found checking for EVP_PKEY_ED25519 ... found checking for OpenSSL version ... "OpenSSL 3.5.10 1 Dec 2026" checking for zlib via pkg-config ... found checking for zlib version ... "1.4" creating build-debug/Makefile checking for expect ... found + Expect version: expect version 5.45.4 NJS configuration summary: + using CC: "cc" + using CFLAGS: " -Os -fstack-clash-protection -Wformat -Werror=format-security" + using PCRE library: -lpcre2-8 + using readline library: -ledit + using QuickJS library: -lm -lqjs + using OpenSSL library: -lcrypto + using zlib library: -lz njs build dir: build-debug njs CLI: build-debug/njs cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_dtoa.o \ -MMD -MF build-debug/src/njs_dtoa.dep -MT build-debug/src/njs_dtoa.o \ src/njs_dtoa.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_str.o \ -MMD -MF build-debug/src/njs_str.dep -MT build-debug/src/njs_str.o \ src/njs_str.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_murmur_hash.o \ -MMD -MF build-debug/src/njs_murmur_hash.dep -MT build-debug/src/njs_murmur_hash.o \ src/njs_murmur_hash.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_djb_hash.o \ -MMD -MF build-debug/src/njs_djb_hash.dep -MT build-debug/src/njs_djb_hash.o \ src/njs_djb_hash.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_utf8.o \ -MMD -MF build-debug/src/njs_utf8.dep -MT build-debug/src/njs_utf8.o \ src/njs_utf8.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_utf16.o \ -MMD -MF build-debug/src/njs_utf16.dep -MT build-debug/src/njs_utf16.o \ src/njs_utf16.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_arr.o \ -MMD -MF build-debug/src/njs_arr.dep -MT build-debug/src/njs_arr.o \ src/njs_arr.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_rbtree.o \ -MMD -MF build-debug/src/njs_rbtree.dep -MT build-debug/src/njs_rbtree.o \ src/njs_rbtree.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_flathsh.o \ -MMD -MF build-debug/src/njs_flathsh.dep -MT build-debug/src/njs_flathsh.o \ src/njs_flathsh.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_trace.o \ -MMD -MF build-debug/src/njs_trace.dep -MT build-debug/src/njs_trace.o \ src/njs_trace.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_random.o \ -MMD -MF build-debug/src/njs_random.dep -MT build-debug/src/njs_random.o \ src/njs_random.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_malloc.o \ -MMD -MF build-debug/src/njs_malloc.dep -MT build-debug/src/njs_malloc.o \ src/njs_malloc.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_mp.o \ -MMD -MF build-debug/src/njs_mp.dep -MT build-debug/src/njs_mp.o \ src/njs_mp.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_sprintf.o \ -MMD -MF build-debug/src/njs_sprintf.dep -MT build-debug/src/njs_sprintf.o \ src/njs_sprintf.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_utils.o \ -MMD -MF build-debug/src/njs_utils.dep -MT build-debug/src/njs_utils.o \ src/njs_utils.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_chb.o \ -MMD -MF build-debug/src/njs_chb.dep -MT build-debug/src/njs_chb.o \ src/njs_chb.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_value.o \ -MMD -MF build-debug/src/njs_value.dep -MT build-debug/src/njs_value.o \ src/njs_value.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_atom.o \ -MMD -MF build-debug/src/njs_atom.dep -MT build-debug/src/njs_atom.o \ src/njs_atom.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_vm.o \ -MMD -MF build-debug/src/njs_vm.dep -MT build-debug/src/njs_vm.o \ src/njs_vm.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_vmcode.o \ -MMD -MF build-debug/src/njs_vmcode.dep -MT build-debug/src/njs_vmcode.o \ src/njs_vmcode.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_lexer.o \ -MMD -MF build-debug/src/njs_lexer.dep -MT build-debug/src/njs_lexer.o \ src/njs_lexer.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_parser.o \ -MMD -MF build-debug/src/njs_parser.dep -MT build-debug/src/njs_parser.o \ src/njs_parser.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_variable.o \ -MMD -MF build-debug/src/njs_variable.dep -MT build-debug/src/njs_variable.o \ src/njs_variable.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_scope.o \ -MMD -MF build-debug/src/njs_scope.dep -MT build-debug/src/njs_scope.o \ src/njs_scope.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_generator.o \ -MMD -MF build-debug/src/njs_generator.dep -MT build-debug/src/njs_generator.o \ src/njs_generator.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_disassembler.o \ -MMD -MF build-debug/src/njs_disassembler.dep -MT build-debug/src/njs_disassembler.o \ src/njs_disassembler.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_module.o \ -MMD -MF build-debug/src/njs_module.dep -MT build-debug/src/njs_module.o \ src/njs_module.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_extern.o \ -MMD -MF build-debug/src/njs_extern.dep -MT build-debug/src/njs_extern.o \ src/njs_extern.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_boolean.o \ -MMD -MF build-debug/src/njs_boolean.dep -MT build-debug/src/njs_boolean.o \ src/njs_boolean.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_number.o \ -MMD -MF build-debug/src/njs_number.dep -MT build-debug/src/njs_number.o \ src/njs_number.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_symbol.o \ -MMD -MF build-debug/src/njs_symbol.dep -MT build-debug/src/njs_symbol.o \ src/njs_symbol.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_string.o \ -MMD -MF build-debug/src/njs_string.dep -MT build-debug/src/njs_string.o \ src/njs_string.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_object.o \ -MMD -MF build-debug/src/njs_object.dep -MT build-debug/src/njs_object.o \ src/njs_object.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_object_prop.o \ -MMD -MF build-debug/src/njs_object_prop.dep -MT build-debug/src/njs_object_prop.o \ src/njs_object_prop.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_array.o \ -MMD -MF build-debug/src/njs_array.dep -MT build-debug/src/njs_array.o \ src/njs_array.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_json.o \ -MMD -MF build-debug/src/njs_json.dep -MT build-debug/src/njs_json.o \ src/njs_json.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_function.o \ -MMD -MF build-debug/src/njs_function.dep -MT build-debug/src/njs_function.o \ src/njs_function.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_regexp.o \ -MMD -MF build-debug/src/njs_regexp.dep -MT build-debug/src/njs_regexp.o \ src/njs_regexp.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_date.o \ -MMD -MF build-debug/src/njs_date.dep -MT build-debug/src/njs_date.o \ src/njs_date.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_error.o \ -MMD -MF build-debug/src/njs_error.dep -MT build-debug/src/njs_error.o \ src/njs_error.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_math.o \ -MMD -MF build-debug/src/njs_math.dep -MT build-debug/src/njs_math.o \ src/njs_math.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_array_buffer.o \ -MMD -MF build-debug/src/njs_array_buffer.dep -MT build-debug/src/njs_array_buffer.o \ src/njs_array_buffer.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_typed_array.o \ -MMD -MF build-debug/src/njs_typed_array.dep -MT build-debug/src/njs_typed_array.o \ src/njs_typed_array.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_promise.o \ -MMD -MF build-debug/src/njs_promise.dep -MT build-debug/src/njs_promise.o \ src/njs_promise.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_encoding.o \ -MMD -MF build-debug/src/njs_encoding.dep -MT build-debug/src/njs_encoding.o \ src/njs_encoding.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_iterator.o \ -MMD -MF build-debug/src/njs_iterator.dep -MT build-debug/src/njs_iterator.o \ src/njs_iterator.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_async.o \ -MMD -MF build-debug/src/njs_async.dep -MT build-debug/src/njs_async.o \ src/njs_async.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_builtin.o \ -MMD -MF build-debug/src/njs_builtin.dep -MT build-debug/src/njs_builtin.o \ src/njs_builtin.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/external/njs_regex.o \ -MMD -MF build-debug/external/njs_regex.dep -MT build-debug/external/njs_regex.o \ external/njs_regex.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/njs_buffer.o \ -MMD -MF build-debug/src/njs_buffer.dep -MT build-debug/src/njs_buffer.o \ src/njs_buffer.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/external/njs_crypto_module.o \ -MMD -MF build-debug/external/njs_crypto_module.dep -MT build-debug/external/njs_crypto_module.o \ external/njs_crypto_module.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/external/njs_webcrypto_module.o \ -MMD -MF build-debug/external/njs_webcrypto_module.dep -MT build-debug/external/njs_webcrypto_module.o \ external/njs_webcrypto_module.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/external/njs_zlib_module.o \ -MMD -MF build-debug/external/njs_zlib_module.dep -MT build-debug/external/njs_zlib_module.o \ external/njs_zlib_module.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/external/njs_fs_module.o \ -MMD -MF build-debug/external/njs_fs_module.dep -MT build-debug/external/njs_fs_module.o \ external/njs_fs_module.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/external/njs_query_string_module.o \ -MMD -MF build-debug/external/njs_query_string_module.dep -MT build-debug/external/njs_query_string_module.o \ external/njs_query_string_module.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/build-debug/njs_modules.o \ -MMD -MF build-debug/build-debug/njs_modules.dep -MT build-debug/build-debug/njs_modules.o \ build-debug/njs_modules.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/qjs.o \ -MMD -MF build-debug/src/qjs.dep -MT build-debug/src/qjs.o \ src/qjs.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/src/qjs_buffer.o \ -MMD -MF build-debug/src/qjs_buffer.dep -MT build-debug/src/qjs_buffer.o \ src/qjs_buffer.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/external/qjs_crypto_module.o \ -MMD -MF build-debug/external/qjs_crypto_module.dep -MT build-debug/external/qjs_crypto_module.o \ external/qjs_crypto_module.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/external/qjs_fs_module.o \ -MMD -MF build-debug/external/qjs_fs_module.dep -MT build-debug/external/qjs_fs_module.o \ external/qjs_fs_module.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/external/qjs_query_string_module.o \ -MMD -MF build-debug/external/qjs_query_string_module.dep -MT build-debug/external/qjs_query_string_module.o \ external/qjs_query_string_module.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/external/qjs_webcrypto_module.o \ -MMD -MF build-debug/external/qjs_webcrypto_module.dep -MT build-debug/external/qjs_webcrypto_module.o \ external/qjs_webcrypto_module.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/external/qjs_zlib_module.o \ -MMD -MF build-debug/external/qjs_zlib_module.dep -MT build-debug/external/qjs_zlib_module.o \ external/qjs_zlib_module.c cc -c -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng -fPIC -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build-debug/build-debug/qjs_modules.o \ -MMD -MF build-debug/build-debug/qjs_modules.dep -MT build-debug/build-debug/qjs_modules.o \ build-debug/qjs_modules.c ar -r -c build-debug/libqjs.a \ build-debug/src/qjs.o build-debug/src/qjs_buffer.o build-debug/external/qjs_crypto_module.o build-debug/external/qjs_fs_module.o build-debug/external/qjs_query_string_module.o build-debug/external/qjs_webcrypto_module.o build-debug/external/qjs_zlib_module.o build-debug/build-debug/qjs_modules.o ar -r -c build-debug/libnjs.a \ build-debug/src/njs_dtoa.o build-debug/src/njs_str.o build-debug/src/njs_murmur_hash.o build-debug/src/njs_djb_hash.o build-debug/src/njs_utf8.o build-debug/src/njs_utf16.o build-debug/src/njs_arr.o build-debug/src/njs_rbtree.o build-debug/src/njs_flathsh.o build-debug/src/njs_trace.o build-debug/src/njs_random.o build-debug/src/njs_malloc.o build-debug/src/njs_mp.o build-debug/src/njs_sprintf.o build-debug/src/njs_utils.o build-debug/src/njs_chb.o build-debug/src/njs_value.o build-debug/src/njs_atom.o build-debug/src/njs_vm.o build-debug/src/njs_vmcode.o build-debug/src/njs_lexer.o build-debug/src/njs_parser.o build-debug/src/njs_variable.o build-debug/src/njs_scope.o build-debug/src/njs_generator.o build-debug/src/njs_disassembler.o build-debug/src/njs_module.o build-debug/src/njs_extern.o build-debug/src/njs_boolean.o build-debug/src/njs_number.o build-debug/src/njs_symbol.o build-debug/src/njs_string.o build-debug/src/njs_object.o build-debug/src/njs_object_prop.o build-debug/src/njs_array.o build-debug/src/njs_json.o build-debug/src/njs_function.o build-debug/src/njs_regexp.o build-debug/src/njs_date.o build-debug/src/njs_error.o build-debug/src/njs_math.o build-debug/src/njs_array_buffer.o build-debug/src/njs_typed_array.o build-debug/src/njs_promise.o build-debug/src/njs_encoding.o build-debug/src/njs_iterator.o build-debug/src/njs_async.o build-debug/src/njs_builtin.o build-debug/external/njs_regex.o build-debug/src/njs_buffer.o build-debug/external/njs_crypto_module.o build-debug/external/njs_webcrypto_module.o build-debug/external/njs_zlib_module.o build-debug/external/njs_fs_module.o build-debug/external/njs_query_string_module.o build-debug/build-debug/njs_modules.o cc -Wl,-E -o build-debug/njs -Isrc -Iexternal -Ibuild-debug -I/usr/include/quickjs-ng \ -Os -fstack-clash-protection -Wformat -Werror=format-security \ external/njs_shell.c \ build-debug/libnjs.a build-debug/libqjs.a \ -lm -lpcre2-8 -lm -lqjs -lcrypto -lz -ledit configuring for Linux 6.18.33-0-lts loongarch64 checking for C compiler: cc + using GNU C compiler + gcc version 15.2.0 (Alpine 15.2.0) checking for -Wl,-E ... checking for sizeof(int) ... 4 checking for sizeof(u_int) ... 4 checking for sizeof(void *) ... 8 checking for sizeof(uintptr_t) ... 8 checking for sizeof(size_t) ... 8 checking for sizeof(off_t) ... 8 checking for sizeof(time_t) ... 8 checking for system byte ordering ... little checking for GCC __builtin_expect() ... found checking for GCC __builtin_unreachable() ... found checking for GCC __builtin_prefetch() ... found checking for GCC __builtin_clz() ... found checking for GCC __builtin_clzll() ... found checking for GCC __attribute__ visibility ... found checking for GCC __attribute__ malloc ... found checking for GCC __attribute__ aligned ... found checking for GCC __attribute__ packed ... found checking for GCC __attribute__ fallthrough ... found checking for GCC __attribute__ no_sanitize ... found checking for Address sanitizer ... not found checking for Memory sanitizer ... not found checking for clock_gettime(CLOCK_MONOTONIC) ... found checking for struct tm.tm_gmtoff ... found checking for altzone ... not found checking for posix_memalign() ... found checking for getrandom() ... found checking for stat.st_atimespec ... not found checking for stat.st_birthtim ... not found checking for stat.__st_birthtim ... not found checking for stat.st_atim ... found checking for Computed goto ... found checking for explicit_bzero() ... found checking for PCRE2 library ... not found checking for PCRE2 library in /usr ... found checking for PCRE2 version ... 10.49 checking for editline library in editline/readline.h ... found checking for QuickJS library -lquickjs.lto ... not found checking for QuickJS library -lquickjs ... not found checking for QuickJS library -I/usr/include/quickjs/ -L/usr/lib/quickjs/ -lquickjs.lto ... not found checking for QuickJS library -I/usr/include/quickjs/ -L/usr/lib/quickjs/ -lquickjs ... not found checking for QuickJS-NG library via pkg-config ... found checking for QuickJS JS_GetClassID() ... found checking for QuickJS JS_NewTypedArray() ... found checking for QuickJS JS_IsSameValue() ... found checking for QuickJS JS_IsArray() ... found checking for QuickJS JS_IsError() ... found checking for QuickJS JS_AddIntrinsicBigInt() ... found checking for QuickJS JS_NewArrayBuffer() with max_len ... found checking for QuickJS version ... "0.18.0" checking for OpenSSL library ... not found checking for OpenSSL library -lcrypto ... found checking for EVP_aes_128_wrap() ... found checking for EVP_PKEY_ED25519 ... found checking for OpenSSL version ... "OpenSSL 3.5.10 1 Dec 2026" checking for zlib via pkg-config ... found checking for zlib version ... "1.4" creating build/Makefile checking for expect ... found + Expect version: expect version 5.45.4 NJS configuration summary: + using CC: "cc" + using CFLAGS: "-Os -Os -fstack-clash-protection -Wformat -Werror=format-security" + using PCRE library: -lpcre2-8 + using readline library: -ledit + using QuickJS library: -lm -lqjs + using OpenSSL library: -lcrypto + using zlib library: -lz njs build dir: build njs CLI: build/njs cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_dtoa.o \ -MMD -MF build/src/njs_dtoa.dep -MT build/src/njs_dtoa.o \ src/njs_dtoa.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_str.o \ -MMD -MF build/src/njs_str.dep -MT build/src/njs_str.o \ src/njs_str.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_murmur_hash.o \ -MMD -MF build/src/njs_murmur_hash.dep -MT build/src/njs_murmur_hash.o \ src/njs_murmur_hash.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_djb_hash.o \ -MMD -MF build/src/njs_djb_hash.dep -MT build/src/njs_djb_hash.o \ src/njs_djb_hash.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_utf8.o \ -MMD -MF build/src/njs_utf8.dep -MT build/src/njs_utf8.o \ src/njs_utf8.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_utf16.o \ -MMD -MF build/src/njs_utf16.dep -MT build/src/njs_utf16.o \ src/njs_utf16.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_arr.o \ -MMD -MF build/src/njs_arr.dep -MT build/src/njs_arr.o \ src/njs_arr.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_rbtree.o \ -MMD -MF build/src/njs_rbtree.dep -MT build/src/njs_rbtree.o \ src/njs_rbtree.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_flathsh.o \ -MMD -MF build/src/njs_flathsh.dep -MT build/src/njs_flathsh.o \ src/njs_flathsh.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_trace.o \ -MMD -MF build/src/njs_trace.dep -MT build/src/njs_trace.o \ src/njs_trace.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_random.o \ -MMD -MF build/src/njs_random.dep -MT build/src/njs_random.o \ src/njs_random.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_malloc.o \ -MMD -MF build/src/njs_malloc.dep -MT build/src/njs_malloc.o \ src/njs_malloc.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_mp.o \ -MMD -MF build/src/njs_mp.dep -MT build/src/njs_mp.o \ src/njs_mp.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_sprintf.o \ -MMD -MF build/src/njs_sprintf.dep -MT build/src/njs_sprintf.o \ src/njs_sprintf.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_utils.o \ -MMD -MF build/src/njs_utils.dep -MT build/src/njs_utils.o \ src/njs_utils.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_chb.o \ -MMD -MF build/src/njs_chb.dep -MT build/src/njs_chb.o \ src/njs_chb.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_value.o \ -MMD -MF build/src/njs_value.dep -MT build/src/njs_value.o \ src/njs_value.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_atom.o \ -MMD -MF build/src/njs_atom.dep -MT build/src/njs_atom.o \ src/njs_atom.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_vm.o \ -MMD -MF build/src/njs_vm.dep -MT build/src/njs_vm.o \ src/njs_vm.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_vmcode.o \ -MMD -MF build/src/njs_vmcode.dep -MT build/src/njs_vmcode.o \ src/njs_vmcode.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_lexer.o \ -MMD -MF build/src/njs_lexer.dep -MT build/src/njs_lexer.o \ src/njs_lexer.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_parser.o \ -MMD -MF build/src/njs_parser.dep -MT build/src/njs_parser.o \ src/njs_parser.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_variable.o \ -MMD -MF build/src/njs_variable.dep -MT build/src/njs_variable.o \ src/njs_variable.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_scope.o \ -MMD -MF build/src/njs_scope.dep -MT build/src/njs_scope.o \ src/njs_scope.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_generator.o \ -MMD -MF build/src/njs_generator.dep -MT build/src/njs_generator.o \ src/njs_generator.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_disassembler.o \ -MMD -MF build/src/njs_disassembler.dep -MT build/src/njs_disassembler.o \ src/njs_disassembler.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_module.o \ -MMD -MF build/src/njs_module.dep -MT build/src/njs_module.o \ src/njs_module.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_extern.o \ -MMD -MF build/src/njs_extern.dep -MT build/src/njs_extern.o \ src/njs_extern.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_boolean.o \ -MMD -MF build/src/njs_boolean.dep -MT build/src/njs_boolean.o \ src/njs_boolean.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_number.o \ -MMD -MF build/src/njs_number.dep -MT build/src/njs_number.o \ src/njs_number.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_symbol.o \ -MMD -MF build/src/njs_symbol.dep -MT build/src/njs_symbol.o \ src/njs_symbol.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_string.o \ -MMD -MF build/src/njs_string.dep -MT build/src/njs_string.o \ src/njs_string.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_object.o \ -MMD -MF build/src/njs_object.dep -MT build/src/njs_object.o \ src/njs_object.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_object_prop.o \ -MMD -MF build/src/njs_object_prop.dep -MT build/src/njs_object_prop.o \ src/njs_object_prop.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_array.o \ -MMD -MF build/src/njs_array.dep -MT build/src/njs_array.o \ src/njs_array.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_json.o \ -MMD -MF build/src/njs_json.dep -MT build/src/njs_json.o \ src/njs_json.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_function.o \ -MMD -MF build/src/njs_function.dep -MT build/src/njs_function.o \ src/njs_function.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_regexp.o \ -MMD -MF build/src/njs_regexp.dep -MT build/src/njs_regexp.o \ src/njs_regexp.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_date.o \ -MMD -MF build/src/njs_date.dep -MT build/src/njs_date.o \ src/njs_date.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_error.o \ -MMD -MF build/src/njs_error.dep -MT build/src/njs_error.o \ src/njs_error.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_math.o \ -MMD -MF build/src/njs_math.dep -MT build/src/njs_math.o \ src/njs_math.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_array_buffer.o \ -MMD -MF build/src/njs_array_buffer.dep -MT build/src/njs_array_buffer.o \ src/njs_array_buffer.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_typed_array.o \ -MMD -MF build/src/njs_typed_array.dep -MT build/src/njs_typed_array.o \ src/njs_typed_array.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_promise.o \ -MMD -MF build/src/njs_promise.dep -MT build/src/njs_promise.o \ src/njs_promise.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_encoding.o \ -MMD -MF build/src/njs_encoding.dep -MT build/src/njs_encoding.o \ src/njs_encoding.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_iterator.o \ -MMD -MF build/src/njs_iterator.dep -MT build/src/njs_iterator.o \ src/njs_iterator.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_async.o \ -MMD -MF build/src/njs_async.dep -MT build/src/njs_async.o \ src/njs_async.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_builtin.o \ -MMD -MF build/src/njs_builtin.dep -MT build/src/njs_builtin.o \ src/njs_builtin.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/external/njs_regex.o \ -MMD -MF build/external/njs_regex.dep -MT build/external/njs_regex.o \ external/njs_regex.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/njs_buffer.o \ -MMD -MF build/src/njs_buffer.dep -MT build/src/njs_buffer.o \ src/njs_buffer.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/external/njs_crypto_module.o \ -MMD -MF build/external/njs_crypto_module.dep -MT build/external/njs_crypto_module.o \ external/njs_crypto_module.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/external/njs_webcrypto_module.o \ -MMD -MF build/external/njs_webcrypto_module.dep -MT build/external/njs_webcrypto_module.o \ external/njs_webcrypto_module.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/external/njs_zlib_module.o \ -MMD -MF build/external/njs_zlib_module.dep -MT build/external/njs_zlib_module.o \ external/njs_zlib_module.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/external/njs_fs_module.o \ -MMD -MF build/external/njs_fs_module.dep -MT build/external/njs_fs_module.o \ external/njs_fs_module.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/external/njs_query_string_module.o \ -MMD -MF build/external/njs_query_string_module.dep -MT build/external/njs_query_string_module.o \ external/njs_query_string_module.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/build/njs_modules.o \ -MMD -MF build/build/njs_modules.dep -MT build/build/njs_modules.o \ build/njs_modules.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/qjs.o \ -MMD -MF build/src/qjs.dep -MT build/src/qjs.o \ src/qjs.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/src/qjs_buffer.o \ -MMD -MF build/src/qjs_buffer.dep -MT build/src/qjs_buffer.o \ src/qjs_buffer.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/external/qjs_crypto_module.o \ -MMD -MF build/external/qjs_crypto_module.dep -MT build/external/qjs_crypto_module.o \ external/qjs_crypto_module.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/external/qjs_fs_module.o \ -MMD -MF build/external/qjs_fs_module.dep -MT build/external/qjs_fs_module.o \ external/qjs_fs_module.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/external/qjs_query_string_module.o \ -MMD -MF build/external/qjs_query_string_module.dep -MT build/external/qjs_query_string_module.o \ external/qjs_query_string_module.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/external/qjs_webcrypto_module.o \ -MMD -MF build/external/qjs_webcrypto_module.dep -MT build/external/qjs_webcrypto_module.o \ external/qjs_webcrypto_module.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/external/qjs_zlib_module.o \ -MMD -MF build/external/qjs_zlib_module.dep -MT build/external/qjs_zlib_module.o \ external/qjs_zlib_module.c cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -fPIC -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/build/qjs_modules.o \ -MMD -MF build/build/qjs_modules.dep -MT build/build/qjs_modules.o \ build/qjs_modules.c ar -r -c build/libqjs.a \ build/src/qjs.o build/src/qjs_buffer.o build/external/qjs_crypto_module.o build/external/qjs_fs_module.o build/external/qjs_query_string_module.o build/external/qjs_webcrypto_module.o build/external/qjs_zlib_module.o build/build/qjs_modules.o ar -r -c build/libnjs.a \ build/src/njs_dtoa.o build/src/njs_str.o build/src/njs_murmur_hash.o build/src/njs_djb_hash.o build/src/njs_utf8.o build/src/njs_utf16.o build/src/njs_arr.o build/src/njs_rbtree.o build/src/njs_flathsh.o build/src/njs_trace.o build/src/njs_random.o build/src/njs_malloc.o build/src/njs_mp.o build/src/njs_sprintf.o build/src/njs_utils.o build/src/njs_chb.o build/src/njs_value.o build/src/njs_atom.o build/src/njs_vm.o build/src/njs_vmcode.o build/src/njs_lexer.o build/src/njs_parser.o build/src/njs_variable.o build/src/njs_scope.o build/src/njs_generator.o build/src/njs_disassembler.o build/src/njs_module.o build/src/njs_extern.o build/src/njs_boolean.o build/src/njs_number.o build/src/njs_symbol.o build/src/njs_string.o build/src/njs_object.o build/src/njs_object_prop.o build/src/njs_array.o build/src/njs_json.o build/src/njs_function.o build/src/njs_regexp.o build/src/njs_date.o build/src/njs_error.o build/src/njs_math.o build/src/njs_array_buffer.o build/src/njs_typed_array.o build/src/njs_promise.o build/src/njs_encoding.o build/src/njs_iterator.o build/src/njs_async.o build/src/njs_builtin.o build/external/njs_regex.o build/src/njs_buffer.o build/external/njs_crypto_module.o build/external/njs_webcrypto_module.o build/external/njs_zlib_module.o build/external/njs_fs_module.o build/external/njs_query_string_module.o build/build/njs_modules.o cc -Wl,--as-needed,-O1,--sort-common -Wl,-z,pack-relative-relocs -fPIC -shared -Wl,-soname,libnjs.so.1.0.2 -o build/libnjs.so.1.0.2 \ build/src/njs_dtoa.o build/src/njs_str.o build/src/njs_murmur_hash.o build/src/njs_djb_hash.o build/src/njs_utf8.o build/src/njs_utf16.o build/src/njs_arr.o build/src/njs_rbtree.o build/src/njs_flathsh.o build/src/njs_trace.o build/src/njs_random.o build/src/njs_malloc.o build/src/njs_mp.o build/src/njs_sprintf.o build/src/njs_utils.o build/src/njs_chb.o build/src/njs_value.o build/src/njs_atom.o build/src/njs_vm.o build/src/njs_vmcode.o build/src/njs_lexer.o build/src/njs_parser.o build/src/njs_variable.o build/src/njs_scope.o build/src/njs_generator.o build/src/njs_disassembler.o build/src/njs_module.o build/src/njs_extern.o build/src/njs_boolean.o build/src/njs_number.o build/src/njs_symbol.o build/src/njs_string.o build/src/njs_object.o build/src/njs_object_prop.o build/src/njs_array.o build/src/njs_json.o build/src/njs_function.o build/src/njs_regexp.o build/src/njs_date.o build/src/njs_error.o build/src/njs_math.o build/src/njs_array_buffer.o build/src/njs_typed_array.o build/src/njs_promise.o build/src/njs_encoding.o build/src/njs_iterator.o build/src/njs_async.o build/src/njs_builtin.o build/external/njs_regex.o build/src/njs_buffer.o build/external/njs_crypto_module.o build/external/njs_webcrypto_module.o build/external/njs_zlib_module.o build/external/njs_fs_module.o build/external/njs_query_string_module.o build/build/njs_modules.o -lpcre2-8 -lm -lqjs -lcrypto -lz cc -Os -Wl,-E -o build/njs -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng \ -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ external/njs_shell.c \ build/libnjs.a build/libqjs.a \ -Os -lm -lpcre2-8 -lm -lqjs -lcrypto -lz -ledit ln -s libnjs.so.1.0.2 build/libnjs.so PATH="build:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" LANG=C.UTF-8 TERM=screen expect -f test/shell_test.exp PATH="build:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" LANG=C.UTF-8 TERM=screen NJS_ENGINE=QuickJS expect -f test/shell_test.exp cc -c -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ \ -o build/test/njs_externals_test.o \ -MMD -MF build/test/njs_externals_test.dep -MT build/test/njs_externals_test.o \ src/test/njs_externals_test.c cc -Os -Wl,-E -o build/random_unit_test -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng \ -Os -Os -fstack-clash-protection -Wformat -Werror=format-security -MMD -MF build/test/random_unit_test.dep -MT build/random_unit_test \ src/test/random_unit_test.c build/libnjs.a \ -lm -Os cc -Os -Wl,-E -o build/rbtree_unit_test -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng \ -Os -Os -fstack-clash-protection -Wformat -Werror=format-security -MMD -MF build/test/rbtree_unit_test.dep -MT build/rbtree_unit_test \ src/test/rbtree_unit_test.c build/libnjs.a \ -lm -Os cc -Os -Wl,-E -o build/mp_unit_test -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng \ -Os -Os -fstack-clash-protection -Wformat -Werror=format-security -MMD -MF build/test/mp_unit_test.dep -MT build/mp_unit_test \ src/test/mp_unit_test.c build/libnjs.a \ -lm -Os cc -Os -Wl,-E -o build/flathsh_unit_test -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng \ -Os -Os -fstack-clash-protection -Wformat -Werror=format-security -MMD -MF build/test/flathsh_unit_test.dep -MT build/flathsh_unit_test \ src/test/flathsh_unit_test.c build/libnjs.a \ -lm -Os cc -Os -Wl,-E -o build/unicode_unit_test -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng \ -Os -Os -fstack-clash-protection -Wformat -Werror=format-security -MMD -MF build/test/unicode_unit_test.dep -MT build/unicode_unit_test \ src/test/unicode_unit_test.c build/libnjs.a \ -lm -Os test/js_test --binary=build/njs NJS_SKIP_LIST="test/js/async_exception_in_await.t.js" \ test/js_test --binary='build/njs -n QuickJS -m' spawnspawn -nottycopy-nottycopy njsnjs interactive njs (njs:1.0.2) interactive njs (QuickJS:0.18.0) >> >> njs.version '1.0.2' njs.vers>> >> >> .exion it exiting '1.0.2' >> >> >> .exit exiting spawn -nottycopy njs spawn -nottycopy njs interactive njs (njs:1.0.2) >> var a = 1 undefined >> >> a *=interactive njs (QuickJS:0.18.0) 2 2 >> >> >> .exit exiting >> var a = 1 spawn -nottycopy njs undefined >> >> a *= 2 2 >> >> .exit >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> function a() { return 1; } undefined >> >> a(); 1 >> >> function ainteractive njs (QuickJS:0.18.0) () { return 2; } undefined >> >> a(); >> 2 >> >> >> .exit exiting function a() { return 1; }spawn -nottycopy njs undefined >> >> a(); 1 >> >> function a() { return 2; } undefined >> >> a(); 2 >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >>  $262 Float64Array process __proto__ Function Promise AggregateError global propertyIsEnumerable Array globalThis RangeError ArrayBuffer hasOwnProperty ReferenceError atob Infinity RegExp Boolean Int16Array require btoa Int32Array setImmediate Buffer Int8Array setTimeout clearTimeout InternalError String console isFinite Symbol constructor isNaN SyntaxError crypto isPrototypeOf TextDecoder DataView JSON TextEncoder Date Math toString decodeURI MemoryError TypeError decodeURIComponent NaN Uint16Array encodeURI njs Uint32Array encodeURIComponent Number Uint8Array Error Object Uint8ClampedArray eval parseFloat undefined EvalError parseInt URIError Float32Array print valueOf >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >>  $262 escape queueMicrotask __defineGetter__ EvalError RangeError __defineSetter__ Float16Array ReferenceError __lookupGetter__ Float32Array Reflect __lookupSetter__ Float64Array RegExp __proto__ globalThis Set AggregateError hasOwnProperty setImmediate Array Infinity setTimeout ArrayBuffer Int16Array SharedArrayBuffer AsyncDisposableStack Int32Array String atob Int8Array SuppressedError Atomics InternalError Symbol BigInt isFinite SyntaxError BigInt64Array isNaN TextDecoder BigUint64Array isPrototypeOf TextEncoder Boolean Iterator toLocaleString btoa JSON toString Buffer Map TypeError clearTimeout Math Uint16Array console NaN Uint32Array constructor njs Uint8Array crypto Number Uint8ClampedArray DataView Object undefined Date parseFloat unescape decodeURI parseInt URIError decodeURIComponent print valueOf DisposableStack process WeakMap encodeURI Promise WeakSet encodeURIComponent propertyIsEnumerable Error Proxy >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> O >> Object [Function: Object] >> .exit exiting interactive njs (QuickJS:0.18.0) spawn -nottycopy njs >> O >> Object function Object() { [native code] } >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> Mat h Math { } >> .exit exiting interactive njs (QuickJS:0.18.0) spawn -nottycopy njs >> Mat h [object Math] >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> conso le Console { dump: [Function: dump], error: [Function: error], info: [Function: info], log: [Function: log], time: [Function: time], timeEnd: [Function: timeEnd], warn: [Function: warn] } >> .exit exiting interactive njs (QuickJS:0.18.0) >> spawn -nottycopy njs conso le [object Console] >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> cons  console constructor >> cons interactive njs (QuickJS:0.18.0) Thrown: ReferenceError: "cons" is not defined at main (shell:1) >> .exit exiting >> spawn -nottycopy njs cons  console constructor >> cons Thrown: ReferenceError: cons is not defined at (:1:1) >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> Type Error.  TypeError.__proto__ TypeError.isPrototypeOf TypeError.apply TypeError.length TypeError.arguments TypeError.name TypeError.bind TypeError.propertyIsEnumerable TypeError.call TypeError.prototype TypeError.caller TypeError.toString TypeError.constructor TypeError.valueOf TypeError.hasOwnProperty >> TypeError. Thrown: SyntaxError: Unexpected end of input at shell:1 >> .exit exiting interactive njs (QuickJS:0.18.0) spawn -nottycopy njs >> Type Error.  TypeError.__defineGetter__ TypeError.hasOwnProperty TypeError.__defineSetter__ TypeError.isError TypeError.__lookupGetter__ TypeError.isPrototypeOf TypeError.__lookupSetter__ TypeError.length TypeError.__proto__ TypeError.lineNumber TypeError.apply TypeError.name TypeError.arguments TypeError.prepareStackTrace TypeError.bind TypeError.propertyIsEnumerable TypeError.call TypeError.prototype TypeError.caller TypeError.stackTraceLimit TypeError.captureStackTrace TypeError.toLocaleString TypeError.columnNumber TypeError.toString TypeError.constructor TypeError.valueOf TypeError.fileName >> TypeError. Thrown: SyntaxError: expecting field name at :1:11 >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> TypeError.  TypeError.__proto__ TypeError.isPrototypeOf TypeError.apply TypeError.length TypeError.arguments TypeError.name TypeError.bind TypeError.propertyIsEnumerable TypeError.call TypeError.prototype TypeError.caller TypeError.toString TypeError.constructor TypeError.valueOf TypeError.hasOwnProperty >> TypeError. Thrown: SyntaxError: Unexpected end of input at shell:1 >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> TypeError.  TypeError.__defineGetter__ TypeError.hasOwnProperty TypeError.__defineSetter__ TypeError.isError TypeError.__lookupGetter__ TypeError.isPrototypeOf TypeError.__lookupSetter__ TypeError.length TypeError.__proto__ TypeError.lineNumber TypeError.apply TypeError.name TypeError.arguments TypeError.prepareStackTrace TypeError.bind TypeError.propertyIsEnumerable TypeError.call TypeError.prototype TypeError.caller TypeError.stackTraceLimit TypeError.captureStackTrace TypeError.toLocaleString TypeError.columnNumber TypeError.toString TypeError.constructor TypeError.valueOf TypeError.fileName >> TypeError. Thrown: SyntaxError: expecting field name at :1:11 >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> Object.ge t Object.getOwnPropertyDescriptor Object.getOwnPropertySymbols Object.getOwnPropertyDescriptors Object.getPrototypeOf Object.getOwnPropertyNames >> Object.get Object.getOwnPropertyDescriptor Object.getOwnPropertySymbols Object.getOwnPropertyDescriptors Object.getPrototypeOf Object.getOwnPropertyNames >> Object.get undefined >> .exit exiting interactive njs (QuickJS:0.18.0) spawn -nottycopy njs >> Object.ge t Object.getOwnPropertyDescriptor Object.getOwnPropertySymbols Object.getOwnPropertyDescriptors Object.getPrototypeOf Object.getOwnPropertyNames >> Object.get Object.getOwnPropertyDescriptor Object.getOwnPropertySymbols Object.getOwnPropertyDescriptors Object.getPrototypeOf Object.getOwnPropertyNames >> Object.get undefined >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> JS ON.  JSON.__proto__ JSON.propertyIsEnumerable JSON.constructor JSON.stringify JSON.hasOwnProperty JSON.toString JSON.isPrototypeOf JSON.valueOf JSON.parse >> JSON. Thrown: SyntaxError: Unexpected end of input at shell:1 >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> JS ON.  JSON.__defineGetter__ JSON.isRawJSON JSON.__defineSetter__ JSON.parse JSON.__lookupGetter__ JSON.propertyIsEnumerable JSON.__lookupSetter__ JSON.rawJSON JSON.__proto__ JSON.stringify JSON.constructor JSON.toLocaleString JSON.hasOwnProperty JSON.toString JSON.isPrototypeOf JSON.valueOf >> JSON. Thrown: SyntaxError: expecting field name at :1:6 >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> decodeURI  decodeURI decodeURIComponent >> decodeURIC omponent [Function: decodeURIComponent] >> .exit interactive njs (QuickJS:0.18.0) exiting spawn -nottycopy njs >> decodeURI  decodeURI decodeURIComponent >> decodeURIC omponent function decodeURIComponent() { [native code] } >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> 1. 1 >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> 1. 1 >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> interactive njs (QuickJS:0.18.0) 1.. >> Thrown: SyntaxError: Unexpected end of input at shell:1 >> .ex1..it exiting Thrown: SyntaxError: expecting field name at :1:4 >> .exit exiting spawn -nottycopy njs spawn -nottycopy njs interactive njs (njs:1.0.2) >> 'abc'. Thrown: SyntaxError: Unexpected end of input at shell:1 >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> 'abc'. Thrown: SyntaxError: expecting field name at :1:7 >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> var AA = 1; var AAA = 2 undefined >> >> AA  AA AAA >> AA 1 >> .exit exiting interactive njs (QuickJS:0.18.0) spawn -nottycopy njs >> var AA = 1; var AAA = 2 undefined >> >> AA  AA AAA >> AA 1 >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> var zz = 1 undefined >> >> 1 + z z 2 >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> var zz = 1 undefined >> >> 1 + z z 2 >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> unknown_var Thrown: ReferenceError: "unknown_var" is not defined at main (shell:1) >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> unknown_var Thrown: ReferenceError: unknown_var is not defined at (:1:1) >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> unknown_var. Thrown: SyntaxError: Unexpected end of input at shell:1 >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> unknown_var. .exit Thrown: SyntaxError: expecting field name at :1:13 >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> var o = {zz:1, zinteractive njs (QuickJS:0.18.0) b:2} undefined >> >> >> o.z  o.zb o.zz >> o.zvar o = {zz:1, zb:2} undefined >> .exit exiting undefined >> >> o.z  o.zb o.zz >> o.z undefined >> .exit spawnexiting -nottycopy njs spawn -nottycopy njs interactive njs (njs:1.0.2) >> var d = new Dateinteractive njs (QuickJS:0.18.0) () undefined >> >> d.to>>   d.toDateString d.toLocaleDateString d.toString d.toISOString d.toLocaleString d.toTimeString d.toJSON d.toLocaleTimeString d.toUTCString >> d.tovar d = new Da undefined >> .exit exiting te() undefined >> >> d.spawn -nottycopy njs to  d.toDateString d.toLocaleDateString d.toTimeString d.toGMTString d.toLocaleString d.toUTCString d.toISOString d.toLocaleTimeString d.toJSON d.toString >> d.to undefined >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) interactive njs (njs:1.0.2) >> >> var o = {a:new Date()} undefined >> var>> o.a o = .to{a:new D ate()} o.a.toDateString o.a.toLocaleDateString o.a.toTimeString o.a.toGMTString o.a.toLocaleString o.a.toUTCString o.a.toISOString o.a.toLocaleTimeString o.a.toJSON o.a.toString >> o.a.to undefined >> .exit exiting undefined >> >> o.a.to  o.a.toDateString o.a.toLocaleDateString o.a.toString o.a.toISOString o.a.toLocaleString o.a.toTimeString o.a.toJSON o.a.toLocaleTimeString o.a.toUTCString >> o.a.to undefined >> .espawn -nottycopyxit njs exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> var o = {a:1,b:interactive njs (njs:1.0.2) 2,333:'t'} undefined >> >> o.3 33>> Thrown: SyntaxError: expecting ';' at :1:2 >> .exit exiting var o = {a:1,b:2,333:'t'} undefined >> spawn -nottycopy njs >> o.3 33 Thrown: SyntaxError: Unexpected token ".333" at shell:1 >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> interactive njs (njs:1.0.2) var a = Array(5000000);>> a.aab = 1; a.aac = 2 var 2 a = Ar>> ray(50>> 0000a.0); a.aab =  1; a.aac = 2 a.__defineGetter__ a.findLast a.reduce a.__defineSetter__ a.findLastIndex a.reduceRight a.__lookupGetter__ a.flat a.reverse a.__lookupSetter__ a.flatMap a.shift a.__proto__ a.forEach a.slice a.aab a.hasOwnProperty a.some a.aac a.includes a.sort a.at a.indexOf a.splice a.concat a.isPrototypeOf a.toLocaleString a.constructor a.join a.toReversed a.copyWithin a.keys a.toSorted a.entries a.lastIndexOf a.toSpliced a.every a.length a.toString a.fill a.map a.unshift a.filter a.pop a.valueOf a.find a.propertyIsEnumerable a.values a.findIndex a.push a.with >> a. Thrown: SyntaxError: expecting field name at :1:3 2 >> .e>> xit exiting >> a.  a.__proto__ a.includes a.shift a.aab a.indexOf a.slice a.aac a.isPrototypeOf a.some a.concat a.join a.sort a.constructor a.keys a.splice a.copyWithin a.lastIndexOf a.toReversed a.entries a.length a.toSorted a.every a.map a.toSpliced a.fill a.pop a.toString a.filter a.propertyIsEnumerable a.unshift a.find a.push a.valueOf a.findIndex a.reduce a.values a.forEach a.reduceRight a.hasOwnProperty a.reverse >> a. Thrown: SyntaxError: Unexpected end of input at shell:1 >> .exit exiting spawn -nottycopy njs spawn -nottycopy njs interactive njs (njs:1.0.2) interactive njs (QuickJS:0.18.0) >> >> var a = new varUin a = t8Anewrra Uiny([t8A5,6,rra7,8y([,8]5,6);,7, a.8,aab8]) = ; a1;.a aab .a= ac 1;= a.2 aac = 2 2 >> 2 >> >> a.>> a.   a.0 a.entries a.reduce a.1 a.every a.reduceRight a.2 a.fill a.reverse a.0 a.every a.propertyIsEnumerable a.1 a.fill a.reduce a.3 a.filter a.set a.4 a.find a.setFromBase64 a.__defineGetter__ a.findIndex a.setFromHex a.__defineSetter__ a.findLast a.slice a.__lookupGetter__ a.findLastIndex a.some a.2 a.filter a.reduceRight a.3 a.find a.reverse a.4 a.findIndex a.set a.__proto__ a.forEach a.slice a.aab a.hasOwnProperty a.some a.__lookupSetter__ a.forEach a.sort a.__proto__ a.hasOwnProperty a.subarray a.aab a.includes a.toBase64 a.aac a.indexOf a.toHex a.at a.isPrototypeOf a.toLocaleString a.buffer a.join a.toReversed a.aac a.includes a.sort a.buffer a.indexOf a.subarray a.byteLength a.isPrototypeOf a.toReversed a.byteOffset a.join a.toSorted a.BYTES_PER_ELEMENT a.keys a.toString a.constructor a.lastIndexOf a.valueOf a.copyWithin a.length a.values a.entries a.map >> a. a.byteLength a.keys a.toSorted a.byteOffset a.lastIndexOf a.toString a.BYTES_PER_ELEMENT a.length a.valueOf a.constructor a.map a.values a.copyWithin a.propertyIsEnumerable a.with >> a. Thrown: SyntaxError: expecting field name at :1:3 Thrown: SyntaxError: Unexpected end of input at shell:1 >> .e>> .exitxit exiting exiting spawn -nottycopy njs spawn -nottycopy njs interactive njs (njs:1.0.2) >> console[Symbol.toStringTag] 'Console' interactive njs (QuickJS:0.18.0) >> >> Object.prototype.toString.call(c>> onsole) '[object Console]' >> >> console.toStrinconsog() le[Symbol.'[object Console]' toSt>> rin>> gTag]>> .e xit exiting 'Console' >> >> Object.prototype.toStringspawn -nottycopy njs .call(console) '[object Console]' >> >> console.toString() '[object Console]' >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> console.log.length 0 >> console.log() >> console.log() undefined >> >> console.log('') undefined >> >> console.log(1) 1 undefined >> >> console.log(1, 'a') 1 a undefined >> >> print(1, 'a') 1 a undefined >> interactive njs (QuickJS:0.18.0) >> >> .exit exiting >> spawn -nottycopy njs console.log.length 0 >> >> console.log() undefined >> >> console.log('') undefined >> >> console.log(1) 1 undefined >> >> console.log(1, 'a') 1 a undefined >> >> print(1, 'a') 1 a undefined >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> console.log('\t\u0430\u0431\u0432\n\u0433\u0434') абв гд undefined >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> console.log('\t\u0430\u0431\u0432\n\u0433\u0434') абв гд undefined >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> console.error(42) E: 42 undefined >> >> console.info(23) 23 undefined >> >> console.warn(37) W: 37 undefined >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> console.error(42) E: 42 undefined >> >> console.info(23) 23 undefined >> >> console.warn(37) W: 37 undefined >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> console.time() undefined >> >> console.timeEnd() default: 0.238861ms undefined >> >> console.time(undefined) undefined >> >> console.timeEnd(undefined) default: 0.283272ms undefined >> >> console.time('abc') undefined >> >> console.time('abc') Timer "abc" already exists. undefined >> >> console.timeEnd('abc') abc: 0.499002ms undefined >> >> console.time(true) undefined >> >> console.timeEnd(true)interactive njs (QuickJS:0.18.0) true: 0.242111ms undefined >> >> console.time(42) >> undefined >> >> console.timeEnd(42) 42: 0.230581ms undefined >> >> consoconsole.le.titimeEnme()d() Timer "default" doesn’t exist. undefined undefined >> >> >> conso >> le.timeconsEnd(ole.t'abc')imeE nd(Timer "abc" doesn’t exist. undefined ) >> >> cdefault: 0.209011ms undefined >> onsole. >> ctime('onsoabcle.t') imeundefined (und>> efined)>> >> .e xitundefined >> exiting >> console.timeEnd(undefined) default: 0.323132ms undefined >> >> console.tspawn ime-nottycopy njs ('abc') undefined >> >> console.time('abc') Timer "abc" already exists. undefined >> >> console.timeEnd('abc') abc: 0.463592ms undefined >> >> console.time(true) undefined >> >> console.timeEnd(true) true: 0.227571ms undefined >> >> console.time(42) undefined >> >> console.timeEnd(42) 42: 0.214981ms undefined >> >> console.timeEnd() Timer "default" doesn’t exist. undefined >> >> console.timeEnd('abc') Timer "abc" doesn’t exist. undefined >> >> console.time('abc') undefined >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> var print = console.log.bind(console); print(1, 'a', [1, 2]) 1 a [1,2] undefined >> >> var print = console.log.bind(console); print(console.a.a) Thrown: TypeError: cannot get property "a" of undefined at main (shell:1) >> >> print(console.a.a) Thrown: TypeError: cannot get property "a" of undefined at main (shell:1) >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> var print = console.log.bind(console); print(1, 'a', [1, 2]) 1 a 1,2 undefined >> >> var print = console.log.bind(console); print(console.a.a) Thrown: TypeError: cannot read property 'a' of undefined at (:1:46) >> >> print(console.a.a) Thrown: TypeError: cannot read property 'a' of undefined at (:1:7) >> >> >> .exit exiting interactive njs (njs:1.0.2) spawn -nottycopy njs >> JSON.parse(Error()) Thrown: SyntaxError: Unexpected token at position 0 at parse (native) at main (shell:1) >> console.a.a >> console.a.a Thrown: TypeError: cannot get property "a" of undefined at main (shell:1) >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> interactive njs (njs:1.0.2) JSON.parse(Error()) >> Thrown: SyntaxError: unexpected token: 'Error' at :1:1 at parse (native) at (:1:11) >> >> console.a.a Thrown: TypeError: cannot read property 'a' of undefined at (:1:1) >> >> >> .extryit { coexiting nsole.log({ toString: function() { throw 'test'; } }) } catch (e) spawn -nottycopy njs{} {toString:[Function: toString]} undefined >> function f() { throw 't' }; try { console.log({ toString: function() { return f() } }) } catch (e) {} >> function f() { throw 't' }; try { console.log({ toString: function() { return  f() } }) } catch (e) {} {toString:[Function: toString]} undefined >> .exit >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> try { console.log({ toString: function() { throw 'test'; } }) } catch (e) {} undefined >> >> function f() { throw 'tinteractive njs (njs:1.0.2) ' }; try { console.log({ toStr>> ing: function() { return (fu fnctio()n() }{ th }row) 't} estca' })tc() h (e) {} Thrown: test >> >> >> .exit exiting undefined >> >> >> .exit exiting spawn -nottycopy njs spawn -nottycopy njs interactive njs (njs:1.0.2) >> function f() { return ({}.a.a); } undefined >> >> var e; try {f()} catch (ee) {e = ee}; uinteractive njs (QuickJS:0.18.0) ndefined undefined >> >> Obj>> ect.keys(null)(function() { th Thrown: TypeError: cannot convert null argument to object at keys (native) at main (shell:1) >> >> row 'test' })()e TypeError: cannot get property "a" of undefined at (native) at main (shell:1) >> >> >> .exit exiting Thrown: test >> >> >> .exit exiting spawn -nottycopy njs spawn -nottycopy njs interactive njs (njs:1.0.2) >> '\u7d75\u6587\u5b57'interactive njs (QuickJS:0.18.0) '絵文字' >> >> >> .exit exiting >> function f()spawn -nottycopy { njs return ({}.a.a); } undefined >> >> var e; try {f()} catch (ee) {e = ee}; undefined undefined >> >> Object.keys(null) Thrown: TypeError: Cannot convert undefined or null to object at keys (native) at (:1:12) >> e >> e TypeError: cannot read property 'a' of undefined >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> var v = '\u0451x\u0439';v[2] 'й' >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> '\u7d75\u6587\u5b57' '絵文字' >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> var t = setImmediate(console.log, 'a', 'aa') undefined a aa >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> var v = '\u0451x\u0439';v[2] 'й' >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> var a = 1 + 1; setTimeout(function (x) {a = x}, 0, 'a'); a 2 >> a >> a 'a' >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> var t = setImmediate(console.log, 'a', 'aa') undefined a aa >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> setTimeout(function () {}, 1, 'a') Thrown: InternalError: njs_set_timer(): async timers unsupported at setTimeout (native) at main (shell:1) >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> var a = 1 + 1; setTimeout(function (x) {a = x}, 0, 'a'); a 2 >> a >> a 'a' >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> var a = 1 + 1; setTimeout(function (x) { setTimeout(function (y) {a = y}, 0, x)}, 0, 'a'); a 2 >> >> a 'a' >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> setTimeout(function () {}, 1, 'a') Thrown: InternalError: njs_set_timer(): async timers unsupported at setTimeout (native) at (:1:11) >> .exit >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> var a = 1 + 1; setImmediate(function (x) { setImmediate(function (y) {a = y},  x)}, 'a'); a 2 >> >> a 'a' >> >> >> .exit exiting interactive njs (QuickJS:0.18.0) spawn -nottycopy njs >> var a = 1 + 1; setTimeout(function (x) { setTimeout(function (y) {a = y}, 0, x)}, 0, 'a'); a 2 >> >> a 'a' >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> var i = 0; (function x() { if (i < 10) setImmediate(x); i++; })() undefined >> >> i 11 >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> var a = 1 + 1; setImmediate(function (x) { setImmediate(function (y) {a = y},  x)}, 'a'); a 2 >> a >> a 'a' >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> var a = 0, t = setImmediate(function() {a = 1}); clearTimeout(t) undefined >> a >> a 0 >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> var i = 0; (function x() { if (i < 10) setImmediate(x); i++; })() undefined >> >> i 11 >> >> >> .exit exiting interactive njs (njs:1.0.2) spawn -nottycopy njs >> var i = 0; (function x() { if (i < 3) setImmediate(x); i++; throw 'Oops';})()  Thrown: Oops Thrown: Oops Thrown: Oops Thrown: Oops >> >> i 4 >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> var a = 0, t = setImmediate(function() {a = 1}); clearTimeout(t) undefined >> >> a 0 >> >> >> interactive njs (njs:1.0.2) .exit exiting >> spawn -nottycopy njs var i = 0, queue = []; (function x() { if (i < 5) setImmediate(x); queue.push (i++); })() undefined >> >> queue.toString() '0,1,2,3,4,5' >> >> >> .exit exiting interactive njs (QuickJS:0.18.0) >> var i = 0; (function x() { if (i < 3) setImmediate(x); i++; throw 'Oops';})()  Thrown: Oops Thrown: Oops Thrown: Oops Thrown: Oops >> >> i 4 >> >> >> .exit exiting spawn -nottycopy njs spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> var i = 0, queue = []; (function x() { if (i < 5) setImmediate(x); queue.push (i++); })() undefined >> >> queue.toString() '0,1,2,3,4,5' >> >> >> .exit exiting interactive njs (njs:1.0.2) >> setImmediate(() => { console.log('x'); return Promise.reject('xx'); }) 0 x Thrown: Error: unhandled promise rejection: xx >> >> setImmediate(() => { console.log('x'); return Promise.reject('xx'); }) 1 x Thrown: Error: unhandled promise rejection: xx >> >> 42 .exit 42 >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> var rejected = Promise.reject('handled later') spawn -nottycopy njs undefined Thrown: Error: unhandled promise rejection: handled later >> >> rejected.catch(() => {}) Promise { } >> >> 42 42 >> >> >> .exit exiting spawn -nottycopy njs interactive njs (QuickJS:0.18.0) >> setImmediatinteractive njs (njs:1.0.2) e(() => { console.log('x'); return Promi>> se.reject('xx'); })var later 0 x Thrown: TypeError: unhandled promise rejection: xx undefined >> setImmediate(() => { console.log('x'); r>> eturn Promise.reject('xx'); }) >> se>> vtImar mmeessdiaagete = {(()toS =tri> ng({ c) { onlatsoler.e.calogtch('(()x' =); > {re});tu rrn etuPrrnom 1is }e.r} eject('xundefined x'>> ); })>> P romis1 x e.Thrown: TypeError: unhandled promise rejection: xx rejec>> >> 42t( messa42 >> ge>> ); >> .exlait terexiting = Promise.reject(2); undefined undefined Thrown: Error: unhandled promise rejection: 1 >> spawn -nottycopy njs >> 42 42 >> >> >> .exit exiting spawn -nottycopy njs -n njs interactive njs (njs:1.0.2) interactive njs (QuickJS:0.18.0) >> >> import broken from './test/var rejejs/moducted =le Pr/coomimpse.ilerej_exectce('haptindonled.j las'te; r') undefined Thrown: TypeError: unhandled promise rejection: handled later >> >> Thrown: SyntaxError: Unexpected token "@" at /home/buildozer/aports/community/njs/src/njs-1.0.2/test/js/module/compile_exception.js:3 >> >> imporrejected.catch(() => t br{})oke n from [object Promise] '.>> /te>> 42st /j42 s/m>> odul>> e/>> .comexipit exiting le_exception.js'; Thrown: SyntaxError: Unexpected token "@" at /home/buildozer/aports/community/njs/src/njs-1.0.2/test/js/module/compile_exception.js:3 >> >> import name frospawn -nottycopy njs m './test/js/module/name.js'; name; 'name' >> >> >> .exit exiting spawn -nottycopy njs -n njs interactive njs (njs:1.0.2) interactive njs (QuickJS:0.18.0) >> >> import broken from './test/jvars/m lateodur le/cyclic_compundefined il>> e_exc>> vaepr metiossagen.j = {s'toSt; ring() { later.catch(() => {})Thrown: SyntaxError: Unexpected token "@" at /home/buildozer/aports/community/njs/src/njs-1.0.2/test/js/module/cyclic_compile_exception.js:3 >> ; ret >> iurnmpo 1rt } de} p from './undefined te>> st/js>> Pr/momiodusele/.recyjecclt(ic_mescosampge)ile; l_eatexceptr = ioPrn_domiepse.j.res'je; ct(2); undefThrown: Error: Cannot load module "/home/buildozer/aports/community/njs/src/njs-1.0.2/test/js/module/cyclic_compile_exception.js" at (native) in>> ed >> 1 + 1 undefined Thrown: TypeError: unhandled promise rejection: 1 >> 2 >> >> 42 >> 42 >> >> .exit exiting >> >> .exit exiting spawn -nottycopy njs -n njs interactive njs (njs:1.0.2) >> import broken from './test/js/module/compile_exception.js'; Thrown: SyntaxError: Unexpected token "@" at /home/buildozer/aports/community/njs/src/njs-1.0.2/test/js/module/compile_exception.js:3 >> >> import broken from './test/js/module/compile_exception.js'; Thrown: SyntaxError: Unexpected token "@" at /home/buildozer/aports/community/njs/src/njs-1.0.2/test/js/module/compile_exception.js:3 >> >> import name from './test/js/module/name.js'; name; 'name' >> >> >> .exit exiting spawn -nottycopy njs -n njs interactive njs (njs:1.0.2) >> import broken from './test/js/module/cyclic_compile_exception.js'; Thrown: SyntaxError: Unexpected token "@" at /home/buildozer/aports/community/njs/src/njs-1.0.2/test/js/module/cyclic_compile_exception.js:3 >> >> import dep from './test/js/module/cyclic_compile_exception_dep.js'; Thrown: Error: Cannot load module "/home/buildozer/aports/community/njs/src/njs-1.0.2/test/js/module/cyclic_compile_exception.js" at (native) >> >> 1 + 1 2 >> >> >> .exit exiting PATH="build:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" LANG=C.UTF-8 TERM=screen expect -f test/shell_test_njs.exp spawn -nottycopy njs interactive njs (njs:1.0.2) >> njs.version '1.0.2' >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> console.dump() undefined >> >> console.dump(1) 1 undefined >> >> console.dump(1, 'a') 1 a undefined >> >> var print = console.dump.bind(console); print(1, 'a', [1, 2]) 1 a [ 1, 2 ] undefined >> >> var print = console.log.bind(console); print(console.a.a) Thrown: TypeError: cannot get property "a" of undefined at main (shell:1) >> >> print(console.a.a) Thrown: TypeError: cannot get property "a" of undefined at main (shell:1) >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> console.ll() Thrown: TypeError: undefined is not a function at main (shell:1) >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> console.log.length 0 >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> console.info(console.a.a) Thrown: TypeError: cannot get property "a" of undefined at main (shell:1) >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> var o = {toString: function(){}, log: console.log} undefined >> >> o { toString: [Function: toString], log: [Function: log] } >> .exit >> >> .exit exiting spawn -nottycopy njs build/random_unit_test interactive njs (njs:1.0.2) >> [1, new Number(2), 'a', new String('\urandom unit test passed 03random unit test: 0xD07123DA b1\u03b2Z\u03b3build/rbtree_unit_test '), true, new Boolean( false)] rbtree unit test started: 1000000 nodes [ 1, [Number: 2], 'a', [String: 'αβZγ'], true, [Boolean: false] ] >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> [undefined,,null] [ undefined, , null ] >> .exit >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> [InternalError(),TypeError('msg'), new RegExp(), /^undef$/m, new Date(0)] [ InternalError at main (shell:1) , TypeError: msg at main (shell:1) , /(?:)/, /^undef$/m, 1970-01-01T00:00:00.000Z ] >> .exit >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> "\r\0\"" '\r\u0000"' >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> [{a:1}] [ { a: 1 } ] >> >> >> .exit exiting spawn -nottycopy njs -d interactive njs (njs:1.0.2) >> 1+1 shell:main 1 | 00000 ADD 0123 0133 0133 1 | 00032 STOP 0123 2 >> >> __unknown shell:main 1 | 00000 GLOBAL GET 0223 0023 0233 1 | 00032 REFERENCE ERROR 1 | 00056 STOP 0223 Thrown: ReferenceError: "__unknown" is not defined at main (shell:1) >> >> for (var n in [1]) {try {break} finally{}} shell:main 1 | 00000 ARRAY 0423 1 1 | 00032 ARRAY INIT 0423 0133 0 1 | 00056 PROP FOREACH 0523 0423 184 1 | 00088 TRY START 0623 0723 88 1 | 00120 JUMP 32 1 | 00136 TRY END 64 1 | 00152 TRY BREAK 0723 -16 1 | 00176 CATCH 0623 24 1 | 00200 TRY FINALLY 0623 0723 24 80 1 | 00240 PROP NEXT 0323 0423 0523 -152 1 | 00280 STOP 0033 undefined >> >> (function() {try {return} finally{}})() shell:main 1 | 00000 FUNCTION 0823 7FFFF220FDC0 0000 1 | 00032 FUNCTION FRAME 0823 0 1 | 00064 FUNCTION CALL 0823 1 | 00080 STOP 0823 shell: 1 | 00000 TRY START 0203 0303 104 1 | 00032 TRY RETURN 0303 0033 48 1 | 00064 TRY END 64 1 | 00080 TRY BREAK 0303 -16 1 | 00104 CATCH 0203 24 1 | 00128 TRY FINALLY 0203 0303 24 32 1 | 00168 RETURN 0033 undefined >> >> >> .exit exiting spawn -nottycopy njs -p test/js/module/ -p test/js/module/libs/ interactive njs (njs:1.0.2) >> import lib1 from 'lib1.js'; import lib2 from 'lib1.js' undefined >> lib2.inc() >> lib2.inc() undefined >> lib1.get() >> lib1.get() 1 >> >> import ref from 'ref_exception.js' Thrown: ReferenceError: "undeclared" is not defined at module (/home/buildozer/aports/community/njs/src/njs-1.0.2/test/js/module/ref_exception.js:1) at (native) >> >> var ref Thrown: SyntaxError: "ref" has already been declared at shell:1 >> >> import ref from 'ref_exception.js' Thrown: SyntaxError: "ref" has already been declared at shell:1 >> >> >> .exit exiting spawn -nottycopy njs -s interactive njs (njs:1.0.2) >> var fs = require('fs') Thrown: Error: Cannot load module "fs" at require (native) at main (shell:1) >> >> >> .exit exiting spawn -nottycopy njs -s interactive njs (njs:1.0.2) >> var crypto = require('crypto') undefined >> >> >> .exit exiting spawn -nottycopy njs -u interactive njs (njs:1.0.2) >> new Function() Thrown: TypeError: function constructor is disabled in "safe" mode at Function (native) at main (shell:1) >> >> (new Function('return this'))() === globalThis true >> new Function('return this;') >> new Function('return this;') [Function: anonymous] >> >> new Function('return thi') Thrown: TypeError: function constructor is disabled in "safe" mode at Function (native) at main (shell:1) >> .exit >> >> .exit exiting spawn -nottycopy njs -m interactive njs (njs:1.0.2) >> typeof this 'undefined' >> (() => typeof this)() >> (() => typeof this)() 'undefined' >> >> this.NaN Thrown: TypeError: cannot get property "NaN" of undefined at main (shell:1) >> >> >> .exit exiting spawn -nottycopy njs interactive njs (njs:1.0.2) >> typeof this 'object' >> (() => typeof this)() >> (() => typeof this)() 'object' >> this.NaN >> this.NaN NaN >> >> >> .exit exiting cc -Os -Wl,-E -o build/njs_unit_test -Isrc -Iexternal -Ibuild -I/usr/include/quickjs-ng \ -Os -Os -fstack-clash-protection -Wformat -Werror=format-security \ -MMD -MF build/test/njs_unit_test.dep -MT build/njs_unit_test.c \ build/test/njs_externals_test.o \ src/test/njs_unit_test.c build/libnjs.a \ -Os -lm -lpcre2-8 -lm -lqjs -lcrypto -lz rbtree unit test passed build/mp_unit_test mp unit test started: 4000 blocks build/njs_unit_test mp unit test passed build/flathsh_unit_test flathsh unit test started: 1000000 items flathsh unit test passed build/unicode_unit_test unicode unit test started utf8 test started utf8 test passed utf16 test started utf16 test passed unicode unit test passed TOTAL: PASSED [153/153] TOTAL: PASSED [153/153] script tests: PASSED [5741/5741] safe script tests: PASSED [5/5] denormals tests: PASSED [10/10] module tests: PASSED [6/6] fs module tests: PASSED [54/54] externals tests: PASSED [126/126] async handler tests: PASSED [2/2] shared tests: PASSED [43/43] interactive tests: PASSED [32/32] backtraces tests: PASSED [39/39] timezone tests: PASSED [29/29] regexp optional tests: PASSED [13/13] vm_json tests: PASSED [6/6] vm_value tests: PASSED [8/8] vm_internal_api tests: PASSED [31/31] TOTAL: PASSED [6145/6145] >>> njs: Entering fakeroot... >>> njs-libs-static*: Running split function static... 'usr/lib/libnjs.a' -> '/home/buildozer/aports/community/njs/pkg/njs-libs-static/usr/lib/libnjs.a' 'usr/lib/libnjs-debug.a' -> '/home/buildozer/aports/community/njs/pkg/njs-libs-static/usr/lib/libnjs-debug.a' >>> njs-libs-static*: Preparing subpackage njs-libs-static... >>> njs-libs-static*: Stripping binaries >>> njs-libs-static*: Running postcheck for njs-libs-static >>> njs-dev*: Running split function dev... 'usr/include' -> '/home/buildozer/aports/community/njs/pkg/njs-dev/usr/include' 'usr/lib/pkgconfig' -> '/home/buildozer/aports/community/njs/pkg/njs-dev/usr/lib/pkgconfig' 'usr/lib/libnjs.so' -> '/home/buildozer/aports/community/njs/pkg/njs-dev/usr/lib/libnjs.so' >>> njs-dev*: Preparing subpackage njs-dev... >>> njs-dev*: Stripping binaries >>> njs-dev*: Running postcheck for njs-dev >>> njs-debug*: Running split function debug... >>> njs-debug*: Preparing subpackage njs-debug... >>> njs-debug*: Running postcheck for njs-debug >>> libnjs*: Running split function libnjs... 'usr/lib/libnjs.so.1.0.2' -> '/home/buildozer/aports/community/njs/pkg/libnjs/usr/lib/libnjs.so.1.0.2' >>> libnjs*: Preparing subpackage libnjs... >>> libnjs*: Stripping binaries >>> libnjs*: Running postcheck for libnjs >>> njs*: Running postcheck for njs >>> njs*: Preparing package njs... >>> njs*: Stripping binaries >>> njs*: Scanning shared objects >>> njs-libs-static*: Scanning shared objects >>> njs-dev*: Scanning shared objects >>> njs-debug*: Scanning shared objects >>> libnjs*: Scanning shared objects >>> njs*: Tracing dependencies... so:libc.musl-loongarch64.so.1 so:libcrypto.so.3 so:libedit.so.0 so:libpcre2-8.so.0 so:libqjs.so.0.18 so:libz.so.1 >>> njs*: Package size: 1023.5 KB >>> njs*: Compressing data... >>> njs*: Create checksum... >>> njs*: Create njs-1.0.2-r3.apk >>> njs-libs-static*: Tracing dependencies... njs-dev >>> njs-libs-static*: Package size: 5.4 MB >>> njs-libs-static*: Compressing data... >>> njs-libs-static*: Create checksum... >>> njs-libs-static*: Create njs-libs-static-1.0.2-r3.apk >>> njs-dev*: Tracing dependencies... libnjs=1.0.2-r3 pc:libcrypto pc:libpcre2-8 pc:zlib pkgconfig >>> njs-dev*: Package size: 374.3 KB >>> njs-dev*: Compressing data... >>> njs-dev*: Create checksum... >>> njs-dev*: Create njs-dev-1.0.2-r3.apk >>> njs-debug*: Tracing dependencies... so:libc.musl-loongarch64.so.1 so:libcrypto.so.3 so:libedit.so.0 so:libpcre2-8.so.0 so:libqjs.so.0.18 so:libz.so.1 >>> njs-debug*: Package size: 1.2 MB >>> njs-debug*: Compressing data... >>> njs-debug*: Create checksum... >>> njs-debug*: Create njs-debug-1.0.2-r3.apk >>> libnjs*: Tracing dependencies... so:libc.musl-loongarch64.so.1 so:libcrypto.so.3 so:libpcre2-8.so.0 so:libz.so.1 >>> libnjs*: Package size: 826.2 KB >>> libnjs*: Compressing data... >>> libnjs*: Create checksum... >>> libnjs*: Create libnjs-1.0.2-r3.apk >>> njs: Build complete at Tue, 01 Dec 2026 19:57:52 +0000 elapsed time 0h 0m 35s >>> njs: Cleaning up srcdir >>> njs: Cleaning up pkgdir >>> njs: Cleaning up tmpdir >>> njs: Uninstalling dependencies... ( 1/18) Purging .makedepends-njs (20261201.195717) ( 2/18) Purging openssl-dev (3.5.10-r0) ( 3/18) Purging pcre2-dev (10.49-r0) ( 4/18) Purging libedit-dev (20260512.3.1-r0) ( 5/18) Purging bsd-compat-headers (0.7.2-r6) ( 6/18) Purging ncurses-dev (6.6_p20261114-r0) ( 7/18) Purging libncurses++ (6.6_p20261114-r0) ( 8/18) Purging libpanelw (6.6_p20261114-r0) ( 9/18) Purging zlib-dev (1.4-r0) (10/18) Purging libpcre2-16 (10.49-r0) (11/18) Purging libpcre2-32 (10.49-r0) (12/18) Purging quickjs-ng-dev (0.18.0-r2) (13/18) Purging quickjs-ng-libs (0.18.0-r2) (14/18) Purging expect (5.45.4-r5) (15/18) Purging libformw (6.6_p20261114-r0) (16/18) Purging libmenuw (6.6_p20261114-r0) (17/18) Purging tcl (8.6.18-r0) (18/18) Purging tzdata (2026f-r0) Executing busybox-1.38.0-r9.trigger OK: 270.8 MiB in 103 packages >>> njs: Updating the community/loongarch64 repository index... >>> njs: Signing the index...