MCPcopy Index your code
hub / github.com/sql-js/sql.js / abortOnCannotGrowMemory

Function abortOnCannotGrowMemory

js/sql-debug.js:1151–1153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1149
1150
1151function abortOnCannotGrowMemory() {
1152 abort('Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value ' + TOTAL_MEMORY + ', (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ');
1153}
1154
1155
1156

Callers 2

enlargeMemoryFunction · 0.70
_sbrkFunction · 0.70

Calls 1

abortFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…