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

Function parseThrowStatement

jsonpath.js:3129–3143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3127 // 12.13 The throw statement
3128
3129 function parseThrowStatement() {
3130 var argument;
3131
3132 expectKeyword('throw');
3133
3134 if (peekLineTerminator()) {
3135 throwError({}, Messages.NewlineAfterThrow);
3136 }
3137
3138 argument = parseExpression();
3139
3140 consumeSemicolon();
3141
3142 return delegate.createThrowStatement(argument);
3143 }
3144
3145 // 12.14 The try statement
3146

Callers 1

parseStatementFunction · 0.85

Calls 5

expectKeywordFunction · 0.85
peekLineTerminatorFunction · 0.85
throwErrorFunction · 0.85
parseExpressionFunction · 0.85
consumeSemicolonFunction · 0.85

Tested by

no test coverage detected