Skip to content
Closed
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
5 changes: 2 additions & 3 deletions src/wasm-gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,8 @@ static void after_function(WasmModule* module,

static void before_export(WasmModule* module, void* user_data) {}

static void after_export(WasmModule* module,
WasmFunction* function,
void* user_data) {
static void after_export(WasmModule* module, WasmFunction* function,
const char* export_name, void* user_data) {
Context* ctx = user_data;
int function_index = function - module->functions.data;
/* HACK(binji): v8-native-prototype crashes when you export functions that
Expand Down
3 changes: 2 additions & 1 deletion src/wasm-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1921,7 +1921,8 @@ static void parse_module(WasmParser* parser, WasmModule* module) {
}

expect_close(parser, read_token(parser));
CALLBACK(parser, after_export, (module, function, parser->user_data));
CALLBACK(parser, after_export,
(module, function, export_name, parser->user_data));
break;
}

Expand Down
5 changes: 2 additions & 3 deletions src/wasm-parse.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ typedef struct WasmParserCallbacks {
int num_exprs,
void* user_data);
void (*before_export)(struct WasmModule* m, void* user_data);
void (*after_export)(struct WasmModule* m,
struct WasmFunction* f,
void* user_data);
void (*after_export)(struct WasmModule* m, struct WasmFunction* f,
const char* export_name, void* user_data);

void (*before_binary)(enum WasmOpcode opcode, void* user_data);
WasmParserCookie (*before_block)(void* user_data);
Expand Down