1# Copyright (c) 2023 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14a,b,c,d
15a,b,c,d
16a,e,c,d
17a,b,c,d
180,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2
19方,舟
20方,舟
210
220
231
241
2510000
26
271,2,3,4
28{"0":1,"1":2,"2":3,"3":4,"length":4}
29defineProperty 0
30defineProperty 1
31defineProperty 2
32defineProperty 3
33set length
34get toJSON
35get 0
36get 1
37get 2
38get 3
39get length
40{"0":1,"1":2,"2":3,"3":4,"length":4}
41defineProperty 0
42defineProperty 1
43defineProperty 2
44defineProperty 3
45set length
46get toJSON
47get length
48get 0
49get 1
50get 2
51get 3
52[1,2,3,4]
53get iterator
54get length
55get 0
56get length
57get 1
58get length
59get 2
60get length
61get length
62get length
63get length
64get length
65get length
66get length
67get length
68[0,1,2,null,null,null,null,null,null,null]
69get 0
70["x",2,3,4,5]
71function Number() { [native code] }
72[null,1,null,null,null,null,null,null,null,null]
73get iterator
74get length
75get 0
76get length
77get 1
78get length
79get 2
80get length
81get length
82get length
83get length
84get length
85get length
86get length
87get length
88[0,1,2,null,null,null,null,null,null,null]
89[1,2,3]
90[null,null,null]
91[{},{},{}]
92[[],[],[]]
93[[1,2,3],[1,2,3],[1,2,3]]
94[0,0,0]
95true
96get JSArray from arrayLike Success
97[1,2,3]
98[2.2,24,"ssss"]
99[[0],[2],[4]]
100[[0],[2],[4]]
101true
102get JSArray from JSArray Success!
103[1,2,3,4,5]
104[1,2,3,4,5]
105["as","as","as","as","as","as","as","as","as","as"]
106result check successfully
107["test","for","array","from","set"]
108[[1,"test"],[2,"for"],[3,"array"],[4,"from"],[5,"map"]]
109[2,4,6,8,10,12]
110[2,4,6,8,10,12]
111[2,4,6,8,10,12]
112[2,4,6,8,10,12]
113[2,4,6,8,10,12]
114