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
4 changes: 3 additions & 1 deletion include-wasm/cjs-module-lexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ struct StarExportBinding {
const uint16_t* specifier_end;
const uint16_t* id_start;
const uint16_t* id_end;
struct StarExportBinding* next;
};
typedef struct StarExportBinding StarExportBinding;

Expand All @@ -45,7 +46,8 @@ const uint16_t* sa (uint32_t utf16Len) {
const uint16_t* sourceEnd = source + utf16Len + 1;
// ensure source is null terminated
*(uint16_t*)(source + utf16Len) = '\0';
analysis_base = (void*)sourceEnd;
const uintptr_t alignment = _Alignof(Slice);
analysis_base = (void*)(((uintptr_t)sourceEnd + alignment - 1) & ~(alignment - 1));
analysis_head = (uintptr_t)analysis_base;
analysis_limit = (uint64_t)__builtin_wasm_memory_size(0) << 16;
first_export = NULL;
Expand Down
Binary file modified lib/lexer.wasm
Binary file not shown.
Loading
Loading