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
69ed71377e
commit
1526158068
|
@ -28,6 +28,7 @@ if (!Function.prototype.GetResource) {
|
|||
}
|
||||
}
|
||||
|
||||
// MS JScript Enumerator to Array
|
||||
if (!Enumerator.prototype.toArray) {
|
||||
Enumerator.prototype.toArray = function() {
|
||||
var a = [];
|
||||
|
@ -37,7 +38,11 @@ if (!Enumerator.prototype.toArray) {
|
|||
for (; !b.atEnd(); b.moveNext()) {
|
||||
var c = b.item();
|
||||
if (typeof c.value !== "unknown") {
|
||||
try {
|
||||
x[c.name] = c.value.toString();
|
||||
} catch (e) {
|
||||
x[c.name] = c.value;
|
||||
}
|
||||
} else {
|
||||
var i = 0, d = [];
|
||||
while (true) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user