From 4e25e13f3565c46d1ffa12a54c80bc979e2f569e Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sun, 23 Nov 2025 23:59:20 +0900 Subject: [PATCH] Update lib/std.js Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- lib/std.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std.js b/lib/std.js index 9e0113c..cefb790 100644 --- a/lib/std.js +++ b/lib/std.js @@ -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); };