Skip to content

Instantly share code, notes, and snippets.

View xeioex's full-sized avatar

Dmitry Volyntsev xeioex

View GitHub Profile
diff --git a/src/http/request.rs b/src/http/request.rs
index f8dead2b..7b06c3f1 100644
--- a/src/http/request.rs
+++ b/src/http/request.rs
@@ -465,20 +465,33 @@ impl<'a> Iterator for NgxListIterator<'a> {
type Item = (&'a str, &'a str);
fn next(&mut self) -> Option<Self::Item> {
- let part = self.part.as_mut()?;
- if self.i >= part.arr.len() {
diff --git a/nginx-wasi/src/bindings.rs b/nginx-wasi/src/bindings.rs
index c9ddfae..192d695 100644
--- a/nginx-wasi/src/bindings.rs
+++ b/nginx-wasi/src/bindings.rs
@@ -32,31 +32,25 @@ wasmtime::component::bindgen!({
pub fn add_to_linker_async(linker: &mut Linker<Ctx>) -> Result<()> {
wasmtime_wasi_io::add_to_linker_async(linker)?;
- fn type_annotate<F>(val: F) -> F
- where
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 773eaba..e7750c0 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -40,7 +40,7 @@ jobs:
- master
- stable-1.28
build:
- - debug
+ - debug
Hello,
I'm glad to announce a new release of NGINX JavaScript module (njs).
This release adds Fetch API support to the QuickJS engine, bringing
it to feature parity with njs. Additionally, the shared dictionary now
includes state file support, allowing its contents to persist across
nginx restarts.
Read more about QuickJS support:
Hello,
I'm glad to announce a new release of NGINX JavaScript module (njs).
This release adds Fetch API support to the QuickJS engine, bringing
it to feature parity with njs. Additionally, the shared dictionary now
includes state file support, allowing its contents to persist across
nginx restarts.
Learn more about njs:
Hello,
I'm glad to announce a new release of NGINX JavaScript module (njs).
This release adds Fetch API support to the QuickJS engine, bringing
it to feature parity with njs. Additionally, the shared dictionary now
includes state file support, allowing its contents to persist across
nginx restarts.
Learn more about njs:
// Copyright (C) 2017 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: |
Collection of assertion functions used throughout test262
defines: [assert]
---*/
function assert(mustBeTrue, message) {
diff --git a/CHANGES b/CHANGES
index af7e4b61..aae01e8c 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,60 @@
+Changes with njs 0.9.1 10 Jul 2025
+
+ nginx modules:
+
+ *) Feature: added Fetch API for QuickJS engine.
diff --git a/src/njs_builtin.c b/src/njs_builtin.c
index e1ab0e97..5ce2ec7e 100644
--- a/src/njs_builtin.c
+++ b/src/njs_builtin.c
@@ -1345,7 +1345,6 @@ njs_process_object_env(njs_vm_t *vm, njs_object_prop_t *pr, uint32_t unused,
ret = njs_flathsh_unique_insert(njs_object_hash(process), &lhq);
if (njs_slow_path(ret != NJS_OK)) {
njs_internal_error(vm, "lvlhsh insert failed");
-
return NJS_ERROR;
diff --git a/src/njs_string.c b/src/njs_string.c
index aae48eba..1a2b2333 100644
--- a/src/njs_string.c
+++ b/src/njs_string.c
@@ -693,11 +693,6 @@ njs_string_prototype_concat(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
size += string.size;
length += string.length;
}
-
- if (njs_slow_path(length > NJS_STRING_MAX_LENGTH)) {