MCPcopy Index your code
hub / github.com/apache/echarts / handleLoadError

Function handleLoadError

test/lib/simpleRequire.js:61–71  ·  view source on GitHub ↗
(url, resolve, reject)

Source from the content-addressed store, hash-verified

59 var mods = {};
60
61 function handleLoadError(url, resolve, reject) {
62 var errMsg = 'require: failed to load ' + url;
63 if (typeof __VRT_LOAD_ERROR__ !== 'undefined') {
64 // Not block the visual regression testing.
65 __VRT_LOAD_ERROR__(errMsg);
66 resolve();
67 }
68 else {
69 reject(errMsg);
70 }
71 }
72
73 function loadText(url) {
74 return new Promise(function (resolve, reject) {

Callers 2

loadTextFunction · 0.85
loadScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…