MCPcopy Index your code
hub / github.com/nodejs/node / convertLockError

Function convertLockError

lib/internal/locks.js:114–119  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

112
113// Convert LOCK_STOLEN_ERROR to AbortError DOMException
114function convertLockError(error) {
115 if (error?.message === locks.LOCK_STOLEN_ERROR) {
116 return lazyDOMException('The operation was aborted', 'AbortError');
117 }
118 return error;
119}
120
121function publishLockRequestStart(name, mode) {
122 if (lockRequestStartChannel.hasSubscribers) {

Callers 1

requestMethod · 0.85

Calls 1

lazyDOMExceptionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…