Update std.js

This commit is contained in:
Namhyeon Go 2024-08-06 21:37:00 +09:00 committed by GitHub
parent fe31aa36bd
commit cfadf1e369
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;