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
9 changes: 0 additions & 9 deletions src/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@

// Various namespace-like modules

// Constructs an array ['a0', 'a1', 'a2', ..., 'a(n-1)']
function genArgSequence(n) {
const args = [];
for (let i = 0; i < n; ++i) {
args.push('a' + i);
}
return args;
}

// List of symbols that were added from the library.
globalThis.librarySymbols = [];

Expand Down
7 changes: 0 additions & 7 deletions src/parseTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,6 @@ function isNiceIdent(ident, loose) {
return /^\(?[$_]+[\w$_\d ]*\)?$/.test(ident);
}

// Simple variables or numbers, or things already quoted, do not need to be quoted
function needsQuoting(ident) {
if (/^[-+]?[$_]?[\w$_\d]*$/.test(ident)) return false; // number or variable
if (ident[0] === '(' && ident[ident.length - 1] === ')' && ident.indexOf('(', 1) < 0) return false; // already fully quoted
return true;
}

globalThis.POINTER_SIZE = MEMORY64 ? 8 : 4;
globalThis.POINTER_MAX = MEMORY64 ? 'Number.MAX_SAFE_INTEGER' : '0xFFFFFFFF';
globalThis.STACK_ALIGN = 16;
Expand Down