Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Array.fromAsync #975

Merged
merged 3 commits into from
Mar 15, 2025
Merged
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
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ codegen: $(QJSC)
$(QJSC) -e -o gen/hello.c examples/hello.js
$(QJSC) -e -o gen/hello_module.c -m examples/hello_module.js
$(QJSC) -e -o gen/test_fib.c -M examples/fib.so,fib -m examples/test_fib.js
$(QJSC) -m -ss -o gen/builtin-array-fromasync.h builtin-array-fromasync.js

debug:
BUILD_TYPE=Debug $(MAKE)
3 changes: 3 additions & 0 deletions amalgam.js
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ const quickjs_h = loadFile("quickjs.h")
const quickjs_libc_c = loadFile("quickjs-libc.c")
const quickjs_libc_h = loadFile("quickjs-libc.h")
const quickjs_opcode_h = loadFile("quickjs-opcode.h")
const gen_builtin_array_fromasync_h = loadFile("gen/builtin-array-fromasync.h")

let source = "#if defined(QJS_BUILD_LIBC) && defined(__linux__) && !defined(_GNU_SOURCE)\n"
+ "#define _GNU_SOURCE\n"
@@ -42,5 +43,7 @@ let source = "#if defined(QJS_BUILD_LIBC) && defined(__linux__) && !defined(_GNU
source = source.replace(/#include "quickjs-atom.h"/g, quickjs_atom_h)
source = source.replace(/#include "quickjs-opcode.h"/g, quickjs_opcode_h)
source = source.replace(/#include "libregexp-opcode.h"/g, libregexp_opcode_h)
source = source.replace(/#include "gen\/builtin-array-fromasync.h"/g,
gen_builtin_array_fromasync_h)
source = source.replace(/#include "[^"]+"/g, "")
writeFile(execArgv[2] ?? "quickjs-amalgam.c", source)
35 changes: 35 additions & 0 deletions builtin-array-fromasync.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
export function go(Array, TypeError, asyncIterator, defineProperty, iterator) {
return async function fromAsync(arrayLike, mapFn=undefined, thisArg=undefined) {
if (mapFn !== undefined && typeof mapFn !== "function") throw new TypeError("not a function")
let result, i = 0, isConstructor = typeof this === "function"
let sync = false, method = arrayLike[asyncIterator]
if (method == null) sync = true, method = arrayLike[iterator]
if (method == null) {
let {length} = arrayLike
length = +length || 0
result = isConstructor ? new this(length) : Array(length)
while (i < length) {
let value = arrayLike[i]
if (sync) value = await value
if (mapFn) value = await mapFn.call(thisArg, value, i)
defineProperty(result, i++, {value, configurable: true, writable: true})
}
} else {
const iter = method.call(arrayLike)
result = isConstructor ? new this() : Array()
try {
for (;;) {
let {value, done} = await iter.next()
if (done) break
if (sync) value = await value
if (mapFn) value = await mapFn.call(thisArg, value, i)
defineProperty(result, i++, {value, configurable: true, writable: true})
}
} finally {
if (iter.return) iter.return()
}
}
result.length = i
return result
}
}
119 changes: 119 additions & 0 deletions gen/builtin-array-fromasync.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
/* File generated automatically by the QuickJS-ng compiler. */

#include <inttypes.h>

const uint32_t qjsc_builtin_array_fromasync_size = 875;

const uint8_t qjsc_builtin_array_fromasync[875] = {
0x13, 0x0f, 0x01, 0x34, 0x62, 0x75, 0x69, 0x6c,
0x74, 0x69, 0x6e, 0x2d, 0x61, 0x72, 0x72, 0x61,
0x79, 0x2d, 0x66, 0x72, 0x6f, 0x6d, 0x61, 0x73,
0x79, 0x6e, 0x63, 0x2e, 0x6a, 0x73, 0x01, 0x04,
0x67, 0x6f, 0x01, 0x1a, 0x61, 0x73, 0x79, 0x6e,
0x63, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f,
0x72, 0x01, 0x10, 0x69, 0x74, 0x65, 0x72, 0x61,
0x74, 0x6f, 0x72, 0x01, 0x12, 0x61, 0x72, 0x72,
0x61, 0x79, 0x4c, 0x69, 0x6b, 0x65, 0x01, 0x0a,
0x6d, 0x61, 0x70, 0x46, 0x6e, 0x01, 0x0e, 0x74,
0x68, 0x69, 0x73, 0x41, 0x72, 0x67, 0x01, 0x0c,
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x01, 0x02,
0x69, 0x01, 0x1a, 0x69, 0x73, 0x43, 0x6f, 0x6e,
0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x6f, 0x72,
0x01, 0x08, 0x73, 0x79, 0x6e, 0x63, 0x01, 0x0c,
0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x01, 0x08,
0x69, 0x74, 0x65, 0x72, 0x01, 0x1c, 0x6e, 0x6f,
0x74, 0x20, 0x61, 0x20, 0x66, 0x75, 0x6e, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x01, 0x08, 0x63, 0x61,
0x6c, 0x6c, 0x0d, 0xc2, 0x03, 0x00, 0x01, 0x00,
0x00, 0xc4, 0x03, 0x00, 0x00, 0x00, 0x0c, 0x20,
0x02, 0x01, 0xa2, 0x01, 0x00, 0x00, 0x00, 0x01,
0x01, 0x01, 0x09, 0x00, 0xc4, 0x03, 0x00, 0x01,
0x0c, 0x43, 0x02, 0x01, 0xc4, 0x03, 0x05, 0x00,
0x05, 0x01, 0x00, 0x01, 0x03, 0x05, 0xaa, 0x02,
0x00, 0x01, 0x40, 0x9e, 0x03, 0x00, 0x01, 0x40,
0xc6, 0x03, 0x00, 0x01, 0x40, 0xcc, 0x01, 0x00,
0x01, 0x40, 0xc8, 0x03, 0x00, 0x01, 0x40, 0x0c,
0x60, 0x02, 0x01, 0xf8, 0x01, 0x03, 0x0e, 0x01,
0x06, 0x05, 0x00, 0x86, 0x04, 0x11, 0xca, 0x03,
0x00, 0x01, 0x00, 0xcc, 0x03, 0x00, 0x01, 0x00,
0xce, 0x03, 0x00, 0x01, 0x00, 0xca, 0x03, 0x01,
0xff, 0xff, 0xff, 0xff, 0x0f, 0x20, 0xcc, 0x03,
0x01, 0x01, 0x20, 0xce, 0x03, 0x01, 0x02, 0x20,
0xd0, 0x03, 0x02, 0x00, 0x20, 0xd2, 0x03, 0x02,
0x04, 0x20, 0xd4, 0x03, 0x02, 0x05, 0x20, 0xd6,
0x03, 0x02, 0x06, 0x20, 0xd8, 0x03, 0x02, 0x07,
0x20, 0x64, 0x06, 0x08, 0x20, 0x82, 0x01, 0x07,
0x09, 0x20, 0xda, 0x03, 0x0a, 0x08, 0x30, 0x82,
0x01, 0x0d, 0x0b, 0x20, 0xd4, 0x01, 0x0d, 0x0c,
0x20, 0x10, 0x00, 0x01, 0x00, 0x9e, 0x03, 0x01,
0x03, 0xc6, 0x03, 0x02, 0x03, 0xc8, 0x03, 0x04,
0x03, 0xaa, 0x02, 0x00, 0x03, 0xcc, 0x01, 0x03,
0x03, 0x08, 0xc3, 0x0d, 0x62, 0x02, 0x00, 0x62,
0x01, 0x00, 0x62, 0x00, 0x00, 0xd2, 0xca, 0xd3,
0x11, 0xf3, 0xeb, 0x08, 0x0e, 0x39, 0x46, 0x00,
0x00, 0x00, 0xdb, 0xcb, 0xd4, 0x11, 0xf3, 0xeb,
0x08, 0x0e, 0x39, 0x46, 0x00, 0x00, 0x00, 0xdc,
0xcc, 0x62, 0x07, 0x00, 0x62, 0x06, 0x00, 0x62,
0x05, 0x00, 0x62, 0x04, 0x00, 0x62, 0x03, 0x00,
0xd3, 0x39, 0x46, 0x00, 0x00, 0x00, 0xb0, 0xeb,
0x16, 0xd3, 0x98, 0x04, 0x1b, 0x00, 0x00, 0x00,
0xb0, 0xeb, 0x0c, 0xde, 0x11, 0x04, 0xee, 0x00,
0x00, 0x00, 0x21, 0x01, 0x00, 0x30, 0x06, 0xcd,
0xb5, 0xc3, 0x04, 0xc2, 0x0d, 0xf6, 0xc3, 0x05,
0x09, 0xc3, 0x06, 0xd2, 0xdf, 0x48, 0xc3, 0x07,
0x63, 0x07, 0x00, 0x07, 0xad, 0xeb, 0x0f, 0x0a,
0x11, 0x64, 0x06, 0x00, 0x0e, 0xd2, 0xe0, 0x48,
0x11, 0x64, 0x07, 0x00, 0x0e, 0x63, 0x07, 0x00,
0x07, 0xad, 0x6a, 0xa6, 0x00, 0x00, 0x00, 0x62,
0x08, 0x00, 0x06, 0x11, 0xf3, 0xec, 0x0c, 0x71,
0x43, 0x32, 0x00, 0x00, 0x00, 0xc3, 0x08, 0x0e,
0xed, 0x05, 0x0e, 0xd2, 0xed, 0xf2, 0x63, 0x08,
0x00, 0x8e, 0x11, 0xec, 0x03, 0x0e, 0xb5, 0x11,
0x64, 0x08, 0x00, 0x0e, 0x63, 0x05, 0x00, 0xeb,
0x0c, 0xc2, 0x0d, 0x11, 0x63, 0x08, 0x00, 0x21,
0x01, 0x00, 0xed, 0x06, 0xe1, 0x63, 0x08, 0x00,
0xf0, 0x11, 0x64, 0x03, 0x00, 0x0e, 0x63, 0x04,
0x00, 0x63, 0x08, 0x00, 0xa7, 0x6a, 0x2a, 0x01,
0x00, 0x00, 0x62, 0x09, 0x00, 0xd2, 0x63, 0x04,
0x00, 0x48, 0xc3, 0x09, 0x63, 0x06, 0x00, 0xeb,
0x0a, 0x63, 0x09, 0x00, 0x8c, 0x11, 0x64, 0x09,
0x00, 0x0e, 0xd3, 0xeb, 0x17, 0xd3, 0x43, 0xef,
0x00, 0x00, 0x00, 0xd4, 0x63, 0x09, 0x00, 0x63,
0x04, 0x00, 0x24, 0x03, 0x00, 0x8c, 0x11, 0x64,
0x09, 0x00, 0x0e, 0x5f, 0x04, 0x00, 0x63, 0x03,
0x00, 0x63, 0x04, 0x00, 0x92, 0x64, 0x04, 0x00,
0x0b, 0x63, 0x09, 0x00, 0x4d, 0x41, 0x00, 0x00,
0x00, 0x0a, 0x4d, 0x3e, 0x00, 0x00, 0x00, 0x0a,
0x4d, 0x3f, 0x00, 0x00, 0x00, 0xf2, 0x0e, 0xed,
0x9e, 0x62, 0x0a, 0x00, 0x63, 0x07, 0x00, 0x43,
0xef, 0x00, 0x00, 0x00, 0xd2, 0x24, 0x01, 0x00,
0xc3, 0x0a, 0x63, 0x05, 0x00, 0xeb, 0x09, 0xc2,
0x0d, 0x11, 0x21, 0x00, 0x00, 0xed, 0x03, 0xe1,
0xef, 0x11, 0x64, 0x03, 0x00, 0x0e, 0x6d, 0x8c,
0x00, 0x00, 0x00, 0x62, 0x0c, 0x00, 0x62, 0x0b,
0x00, 0x06, 0x11, 0xf3, 0xec, 0x13, 0x71, 0x43,
0x41, 0x00, 0x00, 0x00, 0xc3, 0x0b, 0x43, 0x6a,
0x00, 0x00, 0x00, 0xc3, 0x0c, 0x0e, 0xed, 0x10,
0x0e, 0x63, 0x0a, 0x00, 0x43, 0x6b, 0x00, 0x00,
0x00, 0x24, 0x00, 0x00, 0x8c, 0xed, 0xe0, 0x63,
0x0c, 0x00, 0xec, 0x4e, 0x63, 0x06, 0x00, 0xeb,
0x0a, 0x63, 0x0b, 0x00, 0x8c, 0x11, 0x64, 0x0b,
0x00, 0x0e, 0xd3, 0xeb, 0x17, 0xd3, 0x43, 0xef,
0x00, 0x00, 0x00, 0xd4, 0x63, 0x0b, 0x00, 0x63,
0x04, 0x00, 0x24, 0x03, 0x00, 0x8c, 0x11, 0x64,
0x0b, 0x00, 0x0e, 0x5f, 0x04, 0x00, 0x63, 0x03,
0x00, 0x63, 0x04, 0x00, 0x92, 0x64, 0x04, 0x00,
0x0b, 0x63, 0x0b, 0x00, 0x4d, 0x41, 0x00, 0x00,
0x00, 0x0a, 0x4d, 0x3e, 0x00, 0x00, 0x00, 0x0a,
0x4d, 0x3f, 0x00, 0x00, 0x00, 0xf2, 0x0e, 0xed,
0x83, 0x0e, 0x06, 0x6e, 0x0d, 0x00, 0x00, 0x00,
0x0e, 0xed, 0x1e, 0x6e, 0x05, 0x00, 0x00, 0x00,
0x30, 0x63, 0x0a, 0x00, 0x42, 0x06, 0x00, 0x00,
0x00, 0xeb, 0x0d, 0x63, 0x0a, 0x00, 0x43, 0x06,
0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x0e, 0x6f,
0x63, 0x03, 0x00, 0x63, 0x04, 0x00, 0x44, 0x32,
0x00, 0x00, 0x00, 0x63, 0x03, 0x00, 0x2f, 0xc0,
0x00, 0x28, 0x08, 0xeb, 0x05, 0xc0, 0x00, 0xe2,
0x29, 0x06, 0x2f,
};

22 changes: 11 additions & 11 deletions gen/function_source.c
Original file line number Diff line number Diff line change
@@ -14,34 +14,34 @@ const uint8_t qjsc_function_source[324] = {
0x34, 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, 0x0d, 0xc0, 0x03, 0x00, 0x00,
0x32, 0x20, 0x7d, 0x0d, 0xc2, 0x03, 0x00, 0x00,
0x00, 0x00, 0x00, 0x0c, 0x20, 0x0a, 0x01, 0xa2,
0x01, 0x00, 0x05, 0x00, 0x03, 0x02, 0x01, 0x74,
0x05, 0xc2, 0x03, 0x02, 0x00, 0x30, 0xc4, 0x03,
0x04, 0x00, 0x70, 0xc2, 0x03, 0x04, 0x02, 0x70,
0x05, 0xc4, 0x03, 0x02, 0x00, 0x30, 0xc6, 0x03,
0x04, 0x00, 0x70, 0xc4, 0x03, 0x04, 0x02, 0x70,
0x10, 0x00, 0x01, 0x00, 0xe4, 0x01, 0x00, 0x01,
0x00, 0xc6, 0x03, 0x00, 0x0d, 0xc4, 0x03, 0x01,
0x01, 0x0c, 0x43, 0x0a, 0x01, 0xc4, 0x03, 0x00,
0x00, 0xc8, 0x03, 0x00, 0x0d, 0xc6, 0x03, 0x01,
0x01, 0x0c, 0x43, 0x0a, 0x01, 0xc6, 0x03, 0x00,
0x00, 0x00, 0x01, 0x00, 0x00, 0x03, 0x00, 0xbd,
0x2a, 0x28, 0xc0, 0x03, 0x03, 0x01, 0x00, 0x1a,
0x2a, 0x28, 0xc2, 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, 0xc3, 0x04, 0x08, 0xcd,
0x08, 0xeb, 0x05, 0xc0, 0x00, 0xe3, 0x29, 0x04,
0xe4, 0x00, 0x00, 0x00, 0xe2, 0x62, 0x00, 0x00,
0xe5, 0x00, 0x00, 0x00, 0xe2, 0x62, 0x00, 0x00,
0xdf, 0x43, 0x38, 0x00, 0x00, 0x00, 0x24, 0x00,
0x00, 0xca, 0x63, 0x00, 0x00, 0x66, 0x00, 0x00,
0xb0, 0xeb, 0x0b, 0x39, 0x95, 0x00, 0x00, 0x00,
0xb0, 0xeb, 0x0b, 0x39, 0x96, 0x00, 0x00, 0x00,
0x63, 0x00, 0x00, 0xf0, 0x30, 0x62, 0x02, 0x00,
0x62, 0x01, 0x00, 0x39, 0x3b, 0x00, 0x00, 0x00,
0x66, 0x00, 0x00, 0x04, 0xe2, 0x00, 0x00, 0x00,
0x66, 0x00, 0x00, 0x04, 0xe3, 0x00, 0x00, 0x00,
0x9e, 0x32, 0x01, 0x00, 0x03, 0x00, 0xcb, 0x63,
0x01, 0x00, 0x43, 0x38, 0x00, 0x00, 0x00, 0x24,
0x00, 0x00, 0xcc, 0x63, 0x02, 0x00, 0x66, 0x00,
0x00, 0xb0, 0xeb, 0x0b, 0x39, 0x95, 0x00, 0x00,
0x00, 0xb0, 0xeb, 0x0b, 0x39, 0x96, 0x00, 0x00,
0x00, 0x63, 0x02, 0x00, 0xf0, 0x30, 0x69, 0x02,
0x00, 0x69, 0x01, 0x00, 0x06, 0x2f, 0xc0, 0x03,
0x00, 0x69, 0x01, 0x00, 0x06, 0x2f, 0xc2, 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,
8 changes: 4 additions & 4 deletions gen/hello.c
Original file line number Diff line number Diff line change
@@ -11,12 +11,12 @@ const uint8_t qjsc_hello[103] = {
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, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0d, 0xc2, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0c, 0x20, 0x0a, 0x01, 0xa2, 0x01, 0x00, 0x00,
0x00, 0x03, 0x00, 0x00, 0x19, 0x00, 0x08, 0xeb,
0x02, 0x29, 0x39, 0xe1, 0x00, 0x00, 0x00, 0x43,
0xe2, 0x00, 0x00, 0x00, 0x04, 0xe3, 0x00, 0x00,
0x00, 0x24, 0x01, 0x00, 0x0e, 0x06, 0x2f, 0xc0,
0x02, 0x29, 0x39, 0xe2, 0x00, 0x00, 0x00, 0x43,
0xe3, 0x00, 0x00, 0x00, 0x04, 0xe4, 0x00, 0x00,
0x00, 0x24, 0x01, 0x00, 0x0e, 0x06, 0x2f, 0xc2,
0x03, 0x01, 0x01, 0x02, 0x48, 0x0e, 0x00,
};

34 changes: 17 additions & 17 deletions gen/hello_module.c
Original file line number Diff line number Diff line change
@@ -9,17 +9,17 @@ const uint8_t qjsc_fib_module[290] = {
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, 0xc0, 0x03, 0x00, 0x01, 0x00,
0x00, 0xc2, 0x03, 0x00, 0x00, 0x00, 0x0c, 0x20,
0x02, 0x6e, 0x0d, 0xc2, 0x03, 0x00, 0x01, 0x00,
0x00, 0xc4, 0x03, 0x00, 0x00, 0x00, 0x0c, 0x20,
0x0a, 0x01, 0xa2, 0x01, 0x00, 0x00, 0x00, 0x01,
0x01, 0x01, 0x09, 0x00, 0xc2, 0x03, 0x00, 0x01,
0x0c, 0x43, 0x0a, 0x01, 0xc2, 0x03, 0x01, 0x00,
0x01, 0x04, 0x01, 0x00, 0x1a, 0x01, 0xc4, 0x03,
0x00, 0x01, 0x00, 0xc2, 0x03, 0x00, 0x00, 0xd2,
0x01, 0x01, 0x09, 0x00, 0xc4, 0x03, 0x00, 0x01,
0x0c, 0x43, 0x0a, 0x01, 0xc4, 0x03, 0x01, 0x00,
0x01, 0x04, 0x01, 0x00, 0x1a, 0x01, 0xc6, 0x03,
0x00, 0x01, 0x00, 0xc4, 0x03, 0x00, 0x00, 0xd2,
0xb5, 0xa8, 0xeb, 0x03, 0xb5, 0x28, 0xd2, 0xb6,
0xad, 0xeb, 0x03, 0xb6, 0x28, 0xde, 0xd2, 0xb6,
0x9f, 0xf0, 0xde, 0xd2, 0xb7, 0x9f, 0xf0, 0x9e,
0x28, 0xc0, 0x03, 0x02, 0x08, 0x0e, 0x09, 0x0c,
0x28, 0xc2, 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,
@@ -40,7 +40,7 @@ const uint8_t qjsc_fib_module[290] = {
0x20, 0x31, 0x29, 0x20, 0x2b, 0x20, 0x66, 0x69,
0x62, 0x28, 0x6e, 0x20, 0x2d, 0x20, 0x32, 0x29,
0x3b, 0x0a, 0x7d, 0x08, 0xeb, 0x05, 0xc0, 0x00,
0xe2, 0x29, 0x06, 0x2f, 0xc0, 0x03, 0x01, 0x01,
0xe2, 0x29, 0x06, 0x2f, 0xc2, 0x03, 0x01, 0x01,
0x00, 0x00,
};

@@ -58,17 +58,17 @@ const uint8_t qjsc_hello_module[187] = {
0x01, 0x16, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20,
0x57, 0x6f, 0x72, 0x6c, 0x64, 0x01, 0x10, 0x66,
0x69, 0x62, 0x28, 0x31, 0x30, 0x29, 0x3d, 0x0d,
0xc0, 0x03, 0x01, 0xc2, 0x03, 0x00, 0x00, 0x01,
0x00, 0xc4, 0x03, 0x00, 0x00, 0x0c, 0x20, 0x0a,
0xc2, 0x03, 0x01, 0xc4, 0x03, 0x00, 0x00, 0x01,
0x00, 0xc6, 0x03, 0x00, 0x00, 0x0c, 0x20, 0x0a,
0x01, 0xa2, 0x01, 0x00, 0x00, 0x00, 0x05, 0x01,
0x00, 0x32, 0x00, 0xc4, 0x03, 0x00, 0x0c, 0x08,
0xeb, 0x02, 0x29, 0x39, 0xe3, 0x00, 0x00, 0x00,
0x43, 0xe4, 0x00, 0x00, 0x00, 0x04, 0xe5, 0x00,
0x00, 0x00, 0x24, 0x01, 0x00, 0x0e, 0x39, 0xe3,
0x00, 0x00, 0x00, 0x43, 0xe4, 0x00, 0x00, 0x00,
0x04, 0xe6, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00,
0x00, 0x32, 0x00, 0xc6, 0x03, 0x00, 0x0c, 0x08,
0xeb, 0x02, 0x29, 0x39, 0xe4, 0x00, 0x00, 0x00,
0x43, 0xe5, 0x00, 0x00, 0x00, 0x04, 0xe6, 0x00,
0x00, 0x00, 0x24, 0x01, 0x00, 0x0e, 0x39, 0xe4,
0x00, 0x00, 0x00, 0x43, 0xe5, 0x00, 0x00, 0x00,
0x04, 0xe7, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00,
0xbd, 0x0a, 0xf0, 0x24, 0x02, 0x00, 0x0e, 0x06,
0x2f, 0xc0, 0x03, 0x01, 0x01, 0x0c, 0x00, 0x04,
0x2f, 0xc2, 0x03, 0x01, 0x01, 0x0c, 0x00, 0x04,
0x08, 0x00, 0x34, 0x10, 0x30, 0x0f, 0x34, 0x10,
0x2a, 0x20, 0x00,
};
Loading