MCPcopy Index your code
hub / github.com/hoothin/UserScripts / onError

Function onError

Picviewer CE+/dist.user.js:4694–4700  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4692 // Either fulfill, reject or reject with error
4693 var called = false;
4694 function onError(value) {
4695 if (called) {
4696 return;
4697 }
4698 called = true;
4699 handlers.reject(self, value);
4700 }
4701
4702 function onSuccess(value) {
4703 if (called) {

Callers 1

safelyResolveThenableFunction · 0.70

Calls 1

rejectFunction · 0.70

Tested by

no test coverage detected