Skip to content

Commit

Permalink
fix test on js env
Browse files Browse the repository at this point in the history
Signed-off-by: Yuji Ito <llamerada.jp@gmail.com>
  • Loading branch information
llamerada-jp committed Jun 6, 2023
1 parent 70be47c commit f3f0c72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/js/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ declare class Value {
write(valueC?: number): number;
}
declare class ColonioConfig {
disableSeedVerification: boolean;
loggerFuncRaw: (c: Colonio, json: string) => void;
loggerFunc: (c: Colonio, log: LogEntry) => void;
constructor();
Expand Down
2 changes: 1 addition & 1 deletion src/js/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ EMSCRIPTEN_KEEPALIVE bool js_error_get_line(PTR_T err);
EMSCRIPTEN_KEEPALIVE PTR_T js_error_get_file(PTR_T err);
EMSCRIPTEN_KEEPALIVE int js_error_get_file_length(PTR_T err);
// colonio
EMSCRIPTEN_KEEPALIVE COLONIO_T js_init();
EMSCRIPTEN_KEEPALIVE COLONIO_T js_init(bool disable_seed_verification);
EMSCRIPTEN_KEEPALIVE void js_connect(
COLONIO_T c, PTR_T url, unsigned int url_siz, PTR_T token, unsigned int token_siz, PTR_T on_success,
PTR_T on_failure);
Expand Down

0 comments on commit f3f0c72

Please sign in to comment.