Merge branch 'quickjs-ng:master' into master

This commit is contained in:
The Ghost of FOSS' Future 2025-01-07 14:09:55 -06:00 committed by GitHub
commit 86e6084fa9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -26,3 +26,7 @@ JavaScript runtime for Nintendo Switch homebrew applications.
## [quickjs-rusty](https://github.com/Icemic/quickjs-rusty) ## [quickjs-rusty](https://github.com/Icemic/quickjs-rusty)
Rust wrapper focus on embedding-ready and no-pain type conversion and interoperability. Rust wrapper focus on embedding-ready and no-pain type conversion and interoperability.
## [GodotJS](https://github.com/godotjs/GodotJS)
This project adds TypeScript/JavaScript support for Godot 4.x. It supports multiple javascript runtimes, including QuicJS-NG.

View file

@ -1542,11 +1542,13 @@ static int unicode_prop_ops(CharRange *cr, ...)
} }
} }
done: done:
va_end(ap);
assert(stack_len == 1); assert(stack_len == 1);
ret = cr_copy(cr, &stack[0]); ret = cr_copy(cr, &stack[0]);
cr_free(&stack[0]); cr_free(&stack[0]);
return ret; return ret;
fail: fail:
va_end(ap);
for(i = 0; i < stack_len; i++) for(i = 0; i < stack_len; i++)
cr_free(&stack[i]); cr_free(&stack[i]);
return -1; return -1;