MCPcopy Create free account
hub / github.com/TruthHun/BookStack / getNativePromise

Function getNativePromise

static/word2md/mammoth.browser.js:9513–9522  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9511}
9512
9513function getNativePromise() {
9514 if (typeof Promise === "function") {
9515 try {
9516 var promise = new Promise(function(){});
9517 if ({}.toString.call(promise) === "[object Promise]") {
9518 return Promise;
9519 }
9520 } catch (e) {}
9521 }
9522}
9523
9524function domainBind(self, cb) {
9525 return self.bind(cb);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected