MCPcopy Index your code
hub / github.com/es-shims/DisposableStack / DisposableStack

Function DisposableStack

DisposableStack/implementation.js:25–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23var symbolDispose = require('../Symbol.dispose/polyfill')();
24
25var DisposableStack = function DisposableStack() {
26 if (
27 !(this instanceof DisposableStack)
28 || SLOT.has(this, '[[DisposableState]]')
29 || SLOT.has(this, '[[DisposeCapability]]')
30 ) {
31 throw new $TypeError('can only be used with new');
32 }
33 SLOT.set(this, '[[DisposableState]]', 'PENDING');
34 SLOT.set(this, '[[DisposeCapability]]', NewDisposeCapability());
35};
36
37var disposed = function disposed() {
38 var disposableStack = this; // step 1

Callers 1

tests.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…