• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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
14builtins test start
15builtins string start
16A
17ABBA
181920true
21builtins string end
22builtins ir start
23112
24119
25NaN
26NaN
27100
280
291
30-1
31-1
32-1
335
34-1
35-1
36Bill Gates,1,2
371
381
391
401
411
42NaN
43false
44false
45false
46false
47builtins ir end
48builtins number start
49parseInt result = 16947500000
500.7999999999999999
51-Infinity
52builtins number parsefloat
53NaN
54123
55-0.12
5610.123
570
580
59-1000
60-1000
61-0.12
621
631234560000000000
641234560000000000
651
661
6710
6810
691000
70builtins global parsefloat
71NaN
72123
73-0.12
7410.123
750
760
77-1000
78-1000
79-0.12
801
811234560000000000
821234560000000000
83builtins number parseint
84NaN
85NaN
86NaN
87123
88-2
8910
900
910
92-1000
93-1000
94NaN
95123456
961
971
9810
9910
100100
1014
10216
10364
104100
105256
106builtins global parseint
107NaN
108NaN
109NaN
110123
111-2
11210
1130
1140
115-1000
116-1000
117NaN
118123456
1191
1201
12110
12210
123100
1244
12516
12664
127100
128256
129builtins number isnan
130false
131false
132false
133true
134false
135false
136false
137false
138false
139true
140true
141true
142false
143builtins global isnan
144true
145true
146false
147true
148false
149false
150false
151false
152false
153true
154true
155true
156false
157builtins number isfinite
158false
159false
160false
161false
162false
163false
164true
165true
166true
167true
168builtins global isfinite
169false
170false
171true
172false
173false
174false
175true
176true
177true
178true
179builtins number isinteger
180false
181false
182false
183false
184false
185true
186true
187true
188true
189true
190false
191false
192false
193true
194true
195true
196true
197true
198true
199true
200true
201true
202true
203true
204true
205builtins number issafeinteger
206false
207false
208false
209false
210false
211true
212true
213true
214true
215true
216false
217false
218false
219true
220true
221true
222false
223false
224true
225true
226true
227false
228false
229false
230false
231builtins number tostring
2323.1622776601683794e+21
2333.1622776601683794e+21
2340
2350
2360
2370
238-1
239-1
240-1000000000
241-1000000000
242-1000000000.1233444
243-1000000000.1233444
24410000.1234
24510000.1234
2461000
2471000
24810000123456
24910000123456
2501.0000123456e-11
2511.0000123456e-11
2520.10000123456
2530.10000123456
2541234560000000000
2551234560000000000
256TypeError: Cannot convert a BigInt value to a number
2570.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034lmua2oev
2584294967294
2592147483648
2601e+22
261builtins number end
262builtins regexp start
26320210608_5V0J5lVh4xVNYx0AUE.jpg,.jpg
264.jpg
265st2
266a
267
268undefined
269AAA
270AAA
271AAA
272true
273true
2741234
275regexp.exec succ
276match result: support@example.com
277match start index: 14
278builtins regexp end
279builtins object begin
280true
281false
282false
283builtins object end
284builtins object add property begin
2851106
286builtins object add property end
287builtins reflect start
288false
289true
290v56.length 102630708
2910success_1
2920success_2
2931success_1
2941success_2
2952success_1
2962success_2
2973success_1
2983success_2
2994success_1
3004success_2
3015success_1
3025success_2
3036success_1
3046success_2
3057success_1
3067success_2
3078success_1
3088success_2
3099success_1
3109success_2
31110success_1
31210success_2
31311success_1
31411success_2
31512success_1
31612success_2
31713success_1
31813success_2
31914success_1
32014success_2
32115success_1
32215success_2
32316success_1
32416success_2
32517success_1
32617success_2
32718success_1
32818success_2
32919success_1
33019success_2
331tom
332RangeError
333RangeError
334Reflect.set Ir test
335Reflect.set undefined test pass
336Reflect.set null test pass
337key is array
338key is over int32 max
339key is minusOne
340key is lessThanInt32Min
341key is strKeyNumber
342key is strKeyNumberMinusOne
343key is strKeyNumberOverInt32
344key is strKeyNumberLessInt32Min
345toString error
346normal proxy
347return false proxy
348nothrow proxy
349throw proxy
350throw error in proxy
351sym to number fail
352shoud not throw arr not Extensions
353don't throw error if length not writeable
354don't throw error if value not configurable
355no exception or dictionary arr
356setterNothrow call setter
357setterNothrow good
358setterthrow call setter
359error in setter
360setterReturnFalse call setter
361testSetProperty:  true
362testSetNonExistentProperty:  true
363testSetInProxy: true
364testSetWithSymbol: true
365testSetReceiver: false
366testSetPropertyAndCheckExists: true
367testSetInProxyThrowsException: true
368testSetThrowsError: undefined assignment allowed
369testSetNestedObjectProperty: true
370testSetNestedPropertyInProxy: false
371testSetNonConfigurableProperty: No error for non-configurable
372testSetPrototypeProperty: true
373testSetAccessorPropertyInProxy: true
374Reflect.get Ir test
375testGetterUsesReceiverThis: true
376testReceiverIsNull: true
377testReceiverIsPrimitive: true
378testReceiverMissingFields: true
379testReceiverWithOwnFields: true
380testReceiverInheritance: true
381testReceiverIsSameAsTarget: true
382testReceiverArrayLength: true
383testReceiverIsProxy: true
384testReceiverIsClassInstance: true
385testReceiverIsInPrototypeChain: true
386testReceiverIsNull: true
387testReceiverIsUndefined: true
388testReceiverModifiedBySet: true
389Reflect.has Ir test
390testHasPropertyExists: true
391testHasPropertyDoesNotExist: true
392testHasPropertyInPrototypeChain: true
393testHasWithNull: true
394testHasWithUndefined: true
395testHasInProxy: foo exists: true
396testHasInProxy: bar exists: true
397testHasAndGetCombination: true
398testHasInProxyWithNonExistentProperty: true
399testHasVsInOperator: true
400testHasWithSymbol: true
401testHasWithNonExistentSymbol: true
402builtins reflect end
403start concurrent mark
404