Commit 2bded32
committed
Do not reuse by resetting the JavascriptStaticEnumerator in the ForInObjectEnumerator
Even if the type match, the object may have change to have array index, producing wrong result.
Since we now have an instance of the DynamicObjectPropertyEnumerator in the JavascriptStaticEnumerator already, reset doesn't really gain us much. So just remove it.1 parent abd6d13 commit 2bded32
File tree
2 files changed
+2
-18
lines changed- lib/Runtime/Library
2 files changed
+2
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 47 | + | |
62 | 48 | | |
63 | | - | |
64 | | - | |
| 49 | + | |
65 | 50 | | |
66 | 51 | | |
67 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
0 commit comments