MCPcopy Create free account
hub / github.com/dchester/jsonpath / parsePropertyFunction

Function parsePropertyFunction

jsonpath.js:2024–2035  ·  view source on GitHub ↗
(param, first)

Source from the content-addressed store, hash-verified

2022 // 11.1.5 Object Initialiser
2023
2024 function parsePropertyFunction(param, first) {
2025 var previousStrict, body, startToken;
2026
2027 previousStrict = strict;
2028 startToken = lookahead;
2029 body = parseFunctionSourceElements();
2030 if (first && strict && isRestrictedWord(param[0].name)) {
2031 throwErrorTolerant(first, Messages.StrictParamName);
2032 }
2033 strict = previousStrict;
2034 return delegate.markEnd(delegate.createFunctionExpression(null, param, [], body), startToken);
2035 }
2036
2037 function parseObjectPropertyKey() {
2038 var token, startToken;

Callers 1

parseObjectPropertyFunction · 0.85

Calls 3

isRestrictedWordFunction · 0.85
throwErrorTolerantFunction · 0.85

Tested by

no test coverage detected