@vertexvis/viewer 0.24.5-canary.2 → 0.24.5-canary.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -246,14 +246,6 @@ class StencilBuffer {
246
246
  }
247
247
  }
248
248
 
249
- function isPromise(obj) {
250
- return (obj != null &&
251
- obj['then'] instanceof Function &&
252
- obj['catch'] instanceof Function &&
253
- // NOTE: Should be removed if we do not target ES2018.
254
- obj['finally'] instanceof Function);
255
- }
256
-
257
249
  function delay(milliseconds) {
258
250
  return new Promise((resolve) => setTimeout(resolve, milliseconds));
259
251
  }
@@ -2124,7 +2116,7 @@ class TimingMeter {
2124
2116
  this.perf.clearMeasures(this.name);
2125
2117
  }
2126
2118
  measure(target) {
2127
- if (isPromise(target)) {
2119
+ if (target instanceof Promise) {
2128
2120
  const mark = this.begin();
2129
2121
  return target.finally(() => this.end(mark));
2130
2122
  }