MCPcopy
hub / github.com/cure53/DOMPurify / arrayOrAccessorClose

Function arrayOrAccessorClose

demos/lib/Mental.js:7608–7626  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7606 }
7607
7608 function arrayOrAccessorClose() {
7609 lookupSquare--;
7610 index = parseFloat('' + lookupSquare + lookupCurly + lookupParen);
7611 var parentState = parentStates[index];
7612 if (parentState === 1) {
7613 state = 2;
7614 left = 1;
7615 } else if (parentState === 3) {
7616 state = 4;
7617 left = 1;
7618 outputLine += ')';
7619 } else {
7620 error('Unexpected ]. Cannot follow ' + rulesLookup[lastState] + '.Output:' + output);
7621 }
7622 outputLine += ']';
7623 left = 1;
7624 pos++;
7625 parentStates[index] = null;
7626 }
7627
7628 function parenOpen() {
7629 index = parseFloat('' + lookupSquare + lookupCurly + lookupParen);

Callers 1

rewriteFunction · 0.85

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…