mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-06-18 02:59:04 +00:00
Update std.js
This commit is contained in:
parent
07d8a749a2
commit
b1808c3fd3
|
@ -313,7 +313,12 @@ function AsyncFunction(f) {
|
||||||
|
|
||||||
this.run = function() {
|
this.run = function() {
|
||||||
if (this.proxyWindow != null) {
|
if (this.proxyWindow != null) {
|
||||||
this.proxyWindow.setTimeout(1, this.f);
|
try {
|
||||||
|
this.proxyWindow.setTimeout(1, this.f);
|
||||||
|
} catch (e) {
|
||||||
|
console.warn("AsyncFunction proxyWindow.setTimeout failed:", e.message);
|
||||||
|
sleep(1, this.f);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
sleep(1, this.f);
|
sleep(1, this.f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user