Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions builtin-array-fromasync.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#include <inttypes.h>

const uint32_t qjsc_builtin_array_fromasync_size = 863;
const uint32_t qjsc_builtin_array_fromasync_size = 871;

const uint8_t qjsc_builtin_array_fromasync[863] = {
0x15, 0x0e, 0x01, 0x28, 0x53, 0x79, 0x6d, 0x62,
const uint8_t qjsc_builtin_array_fromasync[871] = {
0x16, 0x0e, 0x01, 0x28, 0x53, 0x79, 0x6d, 0x62,
0x6f, 0x6c, 0xb7, 0x61, 0x73, 0x79, 0x6e, 0x63,
0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72,
0x01, 0x2a, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74,
Expand All @@ -26,14 +26,15 @@ const uint8_t qjsc_builtin_array_fromasync[863] = {
0x20, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
0x6e, 0x01, 0x08, 0x63, 0x61, 0x6c, 0x6c, 0x0c,
0x00, 0x02, 0x00, 0xa2, 0x01, 0x00, 0x01, 0x00,
0x01, 0x00, 0x01, 0x04, 0x01, 0xa4, 0x01, 0x00,
0x00, 0x00, 0x0c, 0x43, 0x02, 0x01, 0x00, 0x05,
0x00, 0x05, 0x01, 0x00, 0x01, 0x03, 0x05, 0xae,
0x02, 0x00, 0x01, 0x40, 0xa4, 0x03, 0x00, 0x01,
0x40, 0xca, 0x03, 0x00, 0x01, 0x40, 0xcc, 0x03,
0x00, 0x01, 0x40, 0xce, 0x03, 0x00, 0x01, 0x40,
0x0c, 0x60, 0x02, 0x01, 0xf8, 0x01, 0x03, 0x0e,
0x01, 0x06, 0x05, 0x00, 0x86, 0x04, 0x11, 0xd0,
0x01, 0x00, 0x00, 0x01, 0x04, 0x01, 0xa4, 0x01,
0x00, 0x00, 0x00, 0x0c, 0x43, 0x02, 0x01, 0x00,
0x05, 0x00, 0x05, 0x01, 0x05, 0x00, 0x01, 0x03,
0x05, 0xae, 0x02, 0x00, 0x01, 0x40, 0x03, 0xa4,
0x03, 0x00, 0x01, 0x40, 0x00, 0xca, 0x03, 0x00,
0x01, 0x40, 0x01, 0xcc, 0x03, 0x00, 0x01, 0x40,
0x04, 0xce, 0x03, 0x00, 0x01, 0x40, 0x02, 0x0c,
0x60, 0x02, 0x01, 0xf8, 0x01, 0x03, 0x0e, 0x01,
0x06, 0x00, 0x05, 0x00, 0x86, 0x04, 0x11, 0xd0,
0x03, 0x00, 0x01, 0x00, 0xd2, 0x03, 0x00, 0x01,
0x00, 0xd4, 0x03, 0x00, 0x01, 0x00, 0xd0, 0x03,
0x01, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x20, 0xd2,
Expand Down
520 changes: 262 additions & 258 deletions builtin-iterator-zip-keyed.h

Large diffs are not rendered by default.

545 changes: 274 additions & 271 deletions builtin-iterator-zip.h

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions gen/function_source.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#include "quickjs-libc.h"

const uint32_t qjsc_function_source_size = 324;
const uint32_t qjsc_function_source_size = 328;

const uint8_t qjsc_function_source[324] = {
0x15, 0x05, 0x01, 0x30, 0x74, 0x65, 0x73, 0x74,
const uint8_t qjsc_function_source[328] = {
0x16, 0x05, 0x01, 0x30, 0x74, 0x65, 0x73, 0x74,
0x73, 0x2f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
0x6f, 0x6e, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x2e, 0x6a, 0x73, 0x01, 0x0c, 0x61, 0x63,
Expand All @@ -16,36 +16,36 @@ const uint8_t qjsc_function_source[324] = {
0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x34,
0x32, 0x20, 0x7d, 0x0d, 0xca, 0x03, 0x00, 0x00,
0x00, 0x00, 0x00, 0x0c, 0x20, 0x0a, 0x01, 0xa2,
0x01, 0x00, 0x05, 0x00, 0x03, 0x02, 0x01, 0x74,
0x05, 0xcc, 0x03, 0x02, 0x00, 0x30, 0xce, 0x03,
0x04, 0x00, 0x70, 0xcc, 0x03, 0x04, 0x02, 0x70,
0x10, 0x00, 0x01, 0x00, 0xe4, 0x01, 0x00, 0x01,
0x00, 0xd0, 0x03, 0x00, 0x0d, 0xce, 0x03, 0x01,
0x01, 0x0c, 0x43, 0x0a, 0x01, 0xce, 0x03, 0x00,
0x00, 0x00, 0x01, 0x00, 0x00, 0x03, 0x00, 0xbe,
0x2a, 0x28, 0xca, 0x03, 0x03, 0x01, 0x00, 0x1a,
0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x20, 0x66, 0x28, 0x29, 0x20, 0x7b, 0x20, 0x72,
0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x34, 0x32,
0x20, 0x7d, 0x0c, 0x03, 0xc4, 0x04, 0x08, 0xce,
0x08, 0xec, 0x05, 0xc1, 0x00, 0xe4, 0x29, 0x04,
0xe9, 0x00, 0x00, 0x00, 0xe3, 0x62, 0x00, 0x00,
0xe0, 0x43, 0x38, 0x00, 0x00, 0x00, 0x24, 0x00,
0x00, 0xcb, 0x63, 0x00, 0x00, 0x66, 0x00, 0x00,
0xb0, 0xec, 0x0b, 0x39, 0x98, 0x00, 0x00, 0x00,
0x63, 0x00, 0x00, 0xf1, 0x30, 0x62, 0x02, 0x00,
0x62, 0x01, 0x00, 0x39, 0x3b, 0x00, 0x00, 0x00,
0x66, 0x00, 0x00, 0x04, 0xe7, 0x00, 0x00, 0x00,
0x9e, 0x32, 0x01, 0x00, 0x03, 0x00, 0xcc, 0x63,
0x01, 0x00, 0x43, 0x38, 0x00, 0x00, 0x00, 0x24,
0x00, 0x00, 0xcd, 0x63, 0x02, 0x00, 0x66, 0x00,
0x00, 0xb0, 0xec, 0x0b, 0x39, 0x98, 0x00, 0x00,
0x00, 0x63, 0x02, 0x00, 0xf1, 0x30, 0x69, 0x02,
0x00, 0x69, 0x01, 0x00, 0x06, 0x2f, 0xca, 0x03,
0x01, 0x01, 0x18, 0x00, 0x1c, 0x0a, 0x2a, 0x26,
0x03, 0x20, 0x1c, 0x1b, 0x0c, 0x00, 0x10, 0x08,
0x27, 0x11, 0x12, 0x67, 0x0d, 0x26, 0x03, 0x20,
0x1c, 0x1b, 0x0c, 0x00,
0x01, 0x00, 0x05, 0x00, 0x03, 0x02, 0x02, 0x01,
0x74, 0x05, 0xcc, 0x03, 0x02, 0x00, 0x30, 0xce,
0x03, 0x04, 0x00, 0x70, 0x01, 0xcc, 0x03, 0x04,
0x02, 0x70, 0x00, 0x10, 0x00, 0x01, 0x00, 0xe4,
0x01, 0x00, 0x01, 0x00, 0xd0, 0x03, 0x00, 0x0d,
0xce, 0x03, 0x01, 0x01, 0x0c, 0x43, 0x0a, 0x01,
0xce, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
0x00, 0x03, 0x00, 0xbe, 0x2a, 0x28, 0xca, 0x03,
0x03, 0x01, 0x00, 0x1a, 0x66, 0x75, 0x6e, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x28, 0x29,
0x20, 0x7b, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72,
0x6e, 0x20, 0x34, 0x32, 0x20, 0x7d, 0x0c, 0x03,
0xc4, 0x04, 0x08, 0xce, 0x08, 0xec, 0x05, 0xc1,
0x00, 0xe4, 0x29, 0x04, 0xe9, 0x00, 0x00, 0x00,
0xe3, 0x62, 0x00, 0x00, 0xe0, 0x43, 0x38, 0x00,
0x00, 0x00, 0x24, 0x00, 0x00, 0xcb, 0x63, 0x00,
0x00, 0x66, 0x00, 0x00, 0xb0, 0xec, 0x0b, 0x39,
0x98, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0xf1,
0x30, 0x62, 0x02, 0x00, 0x62, 0x01, 0x00, 0x39,
0x3b, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00, 0x04,
0xe7, 0x00, 0x00, 0x00, 0x9e, 0x32, 0x01, 0x00,
0x03, 0x00, 0xcc, 0x63, 0x01, 0x00, 0x43, 0x38,
0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0xcd, 0x63,
0x02, 0x00, 0x66, 0x00, 0x00, 0xb0, 0xec, 0x0b,
0x39, 0x98, 0x00, 0x00, 0x00, 0x63, 0x02, 0x00,
0xf1, 0x30, 0x69, 0x02, 0x00, 0x69, 0x01, 0x00,
0x06, 0x2f, 0xca, 0x03, 0x01, 0x01, 0x18, 0x00,
0x1c, 0x0a, 0x2a, 0x26, 0x03, 0x20, 0x1c, 0x1b,
0x0c, 0x00, 0x10, 0x08, 0x27, 0x11, 0x12, 0x67,
0x0d, 0x26, 0x03, 0x20, 0x1c, 0x1b, 0x0c, 0x00,
};

static JSContext *JS_NewCustomContext(JSRuntime *rt)
Expand Down
16 changes: 8 additions & 8 deletions gen/hello.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

#include "quickjs-libc.h"

const uint32_t qjsc_hello_size = 103;
const uint32_t qjsc_hello_size = 104;

const uint8_t qjsc_hello[103] = {
0x15, 0x04, 0x01, 0x22, 0x65, 0x78, 0x61, 0x6d,
const uint8_t qjsc_hello[104] = {
0x16, 0x04, 0x01, 0x22, 0x65, 0x78, 0x61, 0x6d,
0x70, 0x6c, 0x65, 0x73, 0x2f, 0x68, 0x65, 0x6c,
0x6c, 0x6f, 0x2e, 0x6a, 0x73, 0x01, 0x0e, 0x63,
0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x01, 0x06,
0x6c, 0x6f, 0x67, 0x01, 0x16, 0x48, 0x65, 0x6c,
0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64,
0x0d, 0xca, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0c, 0x20, 0x0a, 0x01, 0xa2, 0x01, 0x00, 0x00,
0x00, 0x03, 0x00, 0x00, 0x19, 0x00, 0x08, 0xec,
0x02, 0x29, 0x39, 0xe6, 0x00, 0x00, 0x00, 0x43,
0xe7, 0x00, 0x00, 0x00, 0x04, 0xe8, 0x00, 0x00,
0x00, 0x24, 0x01, 0x00, 0x0e, 0x06, 0x2f, 0xca,
0x03, 0x01, 0x01, 0x02, 0x48, 0x0e, 0x00,
0x00, 0x03, 0x00, 0x00, 0x00, 0x19, 0x00, 0x08,
0xec, 0x02, 0x29, 0x39, 0xe6, 0x00, 0x00, 0x00,
0x43, 0xe7, 0x00, 0x00, 0x00, 0x04, 0xe8, 0x00,
0x00, 0x00, 0x24, 0x01, 0x00, 0x0e, 0x06, 0x2f,
0xca, 0x03, 0x01, 0x01, 0x02, 0x48, 0x0e, 0x00,
};

static JSContext *JS_NewCustomContext(JSRuntime *rt)
Expand Down
92 changes: 46 additions & 46 deletions gen/hello_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,52 @@

#include "quickjs-libc.h"

const uint32_t qjsc_fib_module_size = 290;
const uint32_t qjsc_fib_module_size = 292;

const uint8_t qjsc_fib_module[290] = {
0x15, 0x03, 0x01, 0x2c, 0x65, 0x78, 0x61, 0x6d,
const uint8_t qjsc_fib_module[292] = {
0x16, 0x03, 0x01, 0x2c, 0x65, 0x78, 0x61, 0x6d,
0x70, 0x6c, 0x65, 0x73, 0x2f, 0x66, 0x69, 0x62,
0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e,
0x6a, 0x73, 0x01, 0x06, 0x66, 0x69, 0x62, 0x01,
0x02, 0x6e, 0x0d, 0xca, 0x03, 0x00, 0x01, 0x00,
0x00, 0xcc, 0x03, 0x00, 0x00, 0x00, 0x0c, 0x20,
0x0a, 0x01, 0xa2, 0x01, 0x00, 0x00, 0x00, 0x01,
0x01, 0x01, 0x09, 0x00, 0xcc, 0x03, 0x00, 0x01,
0x0c, 0x43, 0x0a, 0x01, 0xcc, 0x03, 0x01, 0x00,
0x01, 0x04, 0x01, 0x00, 0x1a, 0x01, 0xce, 0x03,
0x00, 0x01, 0x00, 0xcc, 0x03, 0x00, 0x00, 0xd3,
0xb6, 0xa8, 0xec, 0x03, 0xb6, 0x28, 0xd3, 0xb7,
0xad, 0xec, 0x03, 0xb7, 0x28, 0xdf, 0xd3, 0xb7,
0x9f, 0xf1, 0xdf, 0xd3, 0xb8, 0x9f, 0xf1, 0x9e,
0x28, 0xca, 0x03, 0x02, 0x08, 0x0e, 0x09, 0x0c,
0x27, 0x0a, 0x28, 0x02, 0x07, 0x08, 0x11, 0x0a,
0x07, 0x08, 0x07, 0x08, 0x8d, 0x01, 0x66, 0x75,
0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66,
0x69, 0x62, 0x28, 0x6e, 0x29, 0x0a, 0x7b, 0x0a,
0x20, 0x20, 0x20, 0x20, 0x69, 0x66, 0x20, 0x28,
0x6e, 0x20, 0x3c, 0x3d, 0x20, 0x30, 0x29, 0x0a,
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x30,
0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c,
0x73, 0x65, 0x20, 0x69, 0x66, 0x20, 0x28, 0x6e,
0x20, 0x3d, 0x3d, 0x20, 0x31, 0x29, 0x0a, 0x20,
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72,
0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x31, 0x3b,
0x0a, 0x20, 0x20, 0x20, 0x20, 0x65, 0x6c, 0x73,
0x65, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
0x00, 0x01, 0x01, 0x09, 0x00, 0xcc, 0x03, 0x00,
0x01, 0x0c, 0x43, 0x0a, 0x01, 0xcc, 0x03, 0x01,
0x00, 0x01, 0x04, 0x00, 0x01, 0x00, 0x1a, 0x01,
0xce, 0x03, 0x00, 0x01, 0x00, 0xcc, 0x03, 0x00,
0x00, 0xd3, 0xb6, 0xa8, 0xec, 0x03, 0xb6, 0x28,
0xd3, 0xb7, 0xad, 0xec, 0x03, 0xb7, 0x28, 0xdf,
0xd3, 0xb7, 0x9f, 0xf1, 0xdf, 0xd3, 0xb8, 0x9f,
0xf1, 0x9e, 0x28, 0xca, 0x03, 0x02, 0x08, 0x0e,
0x09, 0x0c, 0x27, 0x0a, 0x28, 0x02, 0x07, 0x08,
0x11, 0x0a, 0x07, 0x08, 0x07, 0x08, 0x8d, 0x01,
0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x20, 0x66, 0x69, 0x62, 0x28, 0x6e, 0x29, 0x0a,
0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x69, 0x66,
0x20, 0x28, 0x6e, 0x20, 0x3c, 0x3d, 0x20, 0x30,
0x29, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
0x20, 0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e,
0x20, 0x66, 0x69, 0x62, 0x28, 0x6e, 0x20, 0x2d,
0x20, 0x31, 0x29, 0x20, 0x2b, 0x20, 0x66, 0x69,
0x62, 0x28, 0x6e, 0x20, 0x2d, 0x20, 0x32, 0x29,
0x3b, 0x0a, 0x7d, 0x08, 0xec, 0x05, 0xc1, 0x00,
0xe3, 0x29, 0x06, 0x2f, 0xca, 0x03, 0x01, 0x01,
0x00, 0x00,
0x20, 0x30, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20,
0x65, 0x6c, 0x73, 0x65, 0x20, 0x69, 0x66, 0x20,
0x28, 0x6e, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x29,
0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
0x20, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20,
0x31, 0x3b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x65,
0x6c, 0x73, 0x65, 0x0a, 0x20, 0x20, 0x20, 0x20,
0x20, 0x20, 0x20, 0x20, 0x72, 0x65, 0x74, 0x75,
0x72, 0x6e, 0x20, 0x66, 0x69, 0x62, 0x28, 0x6e,
0x20, 0x2d, 0x20, 0x31, 0x29, 0x20, 0x2b, 0x20,
0x66, 0x69, 0x62, 0x28, 0x6e, 0x20, 0x2d, 0x20,
0x32, 0x29, 0x3b, 0x0a, 0x7d, 0x08, 0xec, 0x05,
0xc1, 0x00, 0xe3, 0x29, 0x06, 0x2f, 0xca, 0x03,
0x01, 0x01, 0x00, 0x00,
};

const uint32_t qjsc_hello_module_size = 187;
const uint32_t qjsc_hello_module_size = 188;

const uint8_t qjsc_hello_module[187] = {
0x15, 0x07, 0x01, 0x30, 0x65, 0x78, 0x61, 0x6d,
const uint8_t qjsc_hello_module[188] = {
0x16, 0x07, 0x01, 0x30, 0x65, 0x78, 0x61, 0x6d,
0x70, 0x6c, 0x65, 0x73, 0x2f, 0x68, 0x65, 0x6c,
0x6c, 0x6f, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c,
0x65, 0x2e, 0x6a, 0x73, 0x01, 0x1e, 0x2e, 0x2f,
Expand All @@ -60,17 +60,17 @@ const uint8_t qjsc_hello_module[187] = {
0x69, 0x62, 0x28, 0x31, 0x30, 0x29, 0x3d, 0x0d,
0xca, 0x03, 0x01, 0xcc, 0x03, 0x00, 0x00, 0x01,
0x00, 0xce, 0x03, 0x00, 0x00, 0x0c, 0x20, 0x0a,
0x01, 0xa2, 0x01, 0x00, 0x00, 0x00, 0x05, 0x01,
0x00, 0x32, 0x00, 0xce, 0x03, 0x00, 0x0c, 0x08,
0xec, 0x02, 0x29, 0x39, 0xe8, 0x00, 0x00, 0x00,
0x43, 0xe9, 0x00, 0x00, 0x00, 0x04, 0xea, 0x00,
0x00, 0x00, 0x24, 0x01, 0x00, 0x0e, 0x39, 0xe8,
0x00, 0x00, 0x00, 0x43, 0xe9, 0x00, 0x00, 0x00,
0x04, 0xeb, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00,
0xbe, 0x0a, 0xf1, 0x24, 0x02, 0x00, 0x0e, 0x06,
0x2f, 0xca, 0x03, 0x01, 0x01, 0x0c, 0x00, 0x04,
0x08, 0x00, 0x34, 0x10, 0x30, 0x0f, 0x34, 0x10,
0x2a, 0x20, 0x00,
0x01, 0xa2, 0x01, 0x00, 0x00, 0x00, 0x05, 0x00,
0x01, 0x00, 0x32, 0x00, 0xce, 0x03, 0x00, 0x0c,
0x08, 0xec, 0x02, 0x29, 0x39, 0xe8, 0x00, 0x00,
0x00, 0x43, 0xe9, 0x00, 0x00, 0x00, 0x04, 0xea,
0x00, 0x00, 0x00, 0x24, 0x01, 0x00, 0x0e, 0x39,
0xe8, 0x00, 0x00, 0x00, 0x43, 0xe9, 0x00, 0x00,
0x00, 0x04, 0xeb, 0x00, 0x00, 0x00, 0x66, 0x00,
0x00, 0xbe, 0x0a, 0xf1, 0x24, 0x02, 0x00, 0x0e,
0x06, 0x2f, 0xca, 0x03, 0x01, 0x01, 0x0c, 0x00,
0x04, 0x08, 0x00, 0x34, 0x10, 0x30, 0x0f, 0x34,
0x10, 0x2a, 0x20, 0x00,
};

static JSContext *JS_NewCustomContext(JSRuntime *rt)
Expand Down
Loading