MCPcopy
hub / github.com/openstf/stf / fail

Function fail

lib/util/keyutil.js:17–23  ·  view source on GitHub ↗
(char, state)

Source from the content-addressed store, hash-verified

15 var lastKey, lastRule, lastModifier, lastBehavior
16
17 function fail(char, state) {
18 throw new Error(util.format(
19 'Unexpected character "%s" in state "%s"'
20 , char
21 , state
22 ))
23 }
24
25 function parse(char) {
26 switch (state) {

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected