MCPcopy Create free account
hub / github.com/fastify/fastify / assertNotStarted

Function assertNotStarted

lib/decorate.js:144–148  ·  view source on GitHub ↗
(instance, name)

Source from the content-addressed store, hash-verified

142}
143
144function assertNotStarted (instance, name) {
145 if (instance[kState].started) {
146 throw new FST_ERR_DEC_AFTER_START(name)
147 }
148}
149
150module.exports = {
151 add: decorateFastify,

Callers 3

decorateFastifyFunction · 0.85
decorateReplyFunction · 0.85
decorateRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected