MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / isNiceIdent

Function isNiceIdent

src/parseTools.mjs:241–243  ·  view source on GitHub ↗
(ident)

Source from the content-addressed store, hash-verified

239
240// Returns true if ident is a niceIdent (see toNiceIdent). Also allow () and spaces.
241function isNiceIdent(ident) {
242 return /^\(?[$_]+[\w$_\d ]*\)?$/.test(ident);
243}
244
245export const POINTER_SIZE = MEMORY64 ? 8 : 4;
246const POINTER_MAX = MEMORY64 ? 'Number.MAX_SAFE_INTEGER' : '0xFFFFFFFF';

Callers 1

makeInlineCalculationFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected