hypha-debugger 0.1.8 → 0.1.9
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.
package/dist/hypha-debugger.js
CHANGED
|
@@ -14078,6 +14078,13 @@
|
|
|
14078
14078
|
this.cursor = new AICursor();
|
|
14079
14079
|
}
|
|
14080
14080
|
try {
|
|
14081
|
+
// Polyfill Promise.prototype.finally if missing (needed by hypha-rpc
|
|
14082
|
+
// in some older environments / polyfilled Promise implementations)
|
|
14083
|
+
if (typeof Promise.prototype.finally !== "function") {
|
|
14084
|
+
Promise.prototype.finally = function (cb) {
|
|
14085
|
+
return this.then((value) => Promise.resolve(cb()).then(() => value), (reason) => Promise.resolve(cb()).then(() => { throw reason; }));
|
|
14086
|
+
};
|
|
14087
|
+
}
|
|
14081
14088
|
// Get the connectToServer function
|
|
14082
14089
|
const connect = this.getConnectToServer();
|
|
14083
14090
|
// Connect to Hypha server
|