MCPcopy
hub / github.com/ajv-validator/ajv / throw

Method throw

lib/compile/codegen/index.ts:693–695  ·  view source on GitHub ↗
(error: Code)

Source from the content-addressed store, hash-verified

691
692 // `throw` statement
693 throw(error: Code): CodeGen {
694 return this._leafNode(new Throw(error))
695 }
696
697 // start self-balancing block
698 block(body?: Block, nodeCount?: number): CodeGen {

Callers 15

callAsyncRefFunction · 0.80
returnErrorsFunction · 0.80
returnResultsFunction · 0.80
validateAsyncFunction · 0.80
resolve.spec.tsFile · 0.80
ajv.spec.tsFile · 0.80
async.spec.tsFile · 0.80
codegen.spec.tsFile · 0.80
keyword.spec.tsFile · 0.80
shouldBeInvalidSchemaFunction · 0.80
testThrowFunction · 0.80

Calls 1

_leafNodeMethod · 0.95

Tested by 10

shouldBeInvalidSchemaFunction · 0.64
testThrowFunction · 0.64
testThrowDuplicateFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testOptionMetaFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64