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
fe31aa36bd
commit
cfadf1e369
|
@ -443,7 +443,7 @@ function AsyncFunction(f, __filename) {
|
||||||
AsyncFunction.__counter__++;
|
AsyncFunction.__counter__++;
|
||||||
};
|
};
|
||||||
AsyncFunction.__counter__ = 0;
|
AsyncFunction.__counter__ = 0;
|
||||||
AsyncFunction.Resolve = function(exports, args) {
|
AsyncFunction.Initialize = function(exports, args) {
|
||||||
if (args.length < 2)
|
if (args.length < 2)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -461,7 +461,7 @@ AsyncFunction.Resolve = function(exports, args) {
|
||||||
|
|
||||||
throw new AsyncFunction.Resolved("Resolved");
|
throw new AsyncFunction.Resolved("Resolved");
|
||||||
};
|
};
|
||||||
AsyncFunction.bind = AsyncFunction.Resolve; // compatible under 0.2.7.31
|
AsyncFunction.bind = AsyncFunction.Initialize; // compatible under 0.2.7.31
|
||||||
AsyncFunction.Resolved = function(message) {
|
AsyncFunction.Resolved = function(message) {
|
||||||
this.name = "AsyncFunction.Resolved";
|
this.name = "AsyncFunction.Resolved";
|
||||||
this.message = message;
|
this.message = message;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user