MCPcopy Index your code
hub / github.com/react/create-react-app / standardReleaser

Function standardReleaser

packages/react-error-overlay/fixtures/bundle.mjs:4145–4152  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

4143};
4144
4145var standardReleaser = function (instance) {
4146 var Klass = this;
4147 !(instance instanceof Klass) ? true ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;
4148 instance.destructor();
4149 if (Klass.instancePool.length < Klass.poolSize) {
4150 Klass.instancePool.push(instance);
4151 }
4152};
4153
4154var DEFAULT_POOL_SIZE = 10;
4155var DEFAULT_POOLER = oneArgumentPooler;

Callers

nothing calls this directly

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected