Update std.js

This commit is contained in:
Namhyeon Go 2022-01-19 17:29:27 +09:00 committed by GitHub
parent fe075354fc
commit b188eb3a46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,20 @@ if (!Enumerator.prototype.toArray) {
var b = new Enumerator(this.item().Properties_);
for (; !b.atEnd(); b.moveNext()) {
var c = b.item();
x[c.name] = c.value;
if (typeof c.value !== "unknown") {
x[c.name] = c.value;
} else {
var i = 0, d = [];
while (true) {
try {
d.push(c.value(i));
i++;
} catch (e) {
break;
}
}
x[c.name] = d;
}
}
a.push(x);
}