mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-11-27 10:00:57 +00:00
Update lib/std.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
11fba0e3d0
commit
4e25e13f35
|
|
@ -74,7 +74,7 @@ function GetResource(ResourceName) {
|
|||
})();
|
||||
|
||||
// @deprecated Enumerator.toArray() is deprecated since version 0.2.7.56. Use Array.from()
|
||||
if (!Enumerator.prototype.toArray) {
|
||||
if (typeof Enumerator !== "undefined" && !Enumerator.prototype.toArray) {
|
||||
Enumerator.prototype.toArray = function() {
|
||||
return Array.from(this);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user