Skip to content
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
4 changes: 2 additions & 2 deletions src/jsifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,8 @@ function JSify(data, functionsOnly) {
print('assert(STACK_MAX < SPLIT_MEMORY, "SPLIT_MEMORY size must be big enough so the entire static memory + stack can fit in one chunk, need " + STACK_MAX);\n');
}

if (ASSERTIONS) print('var ASSERTIONS = true;\n');

print(preprocess(read('arrayUtils.js')));
// Export all arrayUtils.js functions
print(maybeExport('intArrayFromString'));
Expand Down Expand Up @@ -551,8 +553,6 @@ function JSify(data, functionsOnly) {
// "Final shape that will be created").
print('// EMSCRIPTEN_END_FUNCS\n');

if (ASSERTIONS) print('var ASSERTIONS = true;\n');

if (HEADLESS) {
print('if (!ENVIRONMENT_IS_WEB) {');
print(read('headlessCanvas.js'));
Expand Down