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