MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / restoreProperty

Function restoreProperty

src/hooks/useFrustumTexture.test.ts:289–300  ·  view source on GitHub ↗
(
  target: object,
  propertyName: string,
  descriptor: PropertyDescriptor | undefined
)

Source from the content-addressed store, hash-verified

287}
288
289function restoreProperty(
290 target: object,
291 propertyName: string,
292 descriptor: PropertyDescriptor | undefined
293): void {
294 if (descriptor) {
295 Object.defineProperty(target, propertyName, descriptor);
296 return;
297 }
298
299 Reflect.deleteProperty(target, propertyName);
300}

Callers 3

installCanvasToBlobFunction · 0.85
installCanvasContextFunction · 0.85
installObjectUrlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected