• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
14I'm propString
15I'm propString
16I'm simple sendable's propString
17I'm simple sendable's propString
18I'm simple sendable's propString
19Start testUpdateInstancePropsToNull
20Success update propString to null with stobjbyname
21Success update subClassPropSendable to null with stobjbyname
22Fail to update propNumber to null with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
23Fail to update propBool to null with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
24Fail to update propBigInt1 to null with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
25Fail to update propBigInt2 to null with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
26Success update propStringOrNull to null with stobjbyname
27Success update propNumberOrNull to null with stobjbyname
28Success update propBoolOrNull to null with stobjbyname
29Success update propBigIntOrNull to null with stobjbyname
30Success update propSenableOrNull to null with stobjbyname
31Start testUpdateInstancePropsToUndefined
32Success update propString to undefined with stobjbyname
33Success update subClassPropSendable to undefined with stobjbyname
34Success update propNumber to undefined with stobjbyname
35Success update propBool to undefined with stobjbyname
36Success update propBigInt1 to undefined with stobjbyname
37Success update propBigInt2 to undefined with stobjbyname
38Success update propStringOrUndefined to undefined with stobjbyname
39Success update propNumberOrUndefined to undefined with stobjbyname
40Success update propBoolOrUndefined to undefined with stobjbyname
41Success update propBigIntOrUndefined to undefined with stobjbyname
42Success update propSenableOrUndefined to undefined with stobjbyname
43Success update subClassPropString with defineProperties
44Success update propNumber with defineProperty
45Fail to update subClassPropString with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
46Start testUpdateInstanceAccessor
47Fail to replace accessor. err: TypeError: Cannot define property
48Success set prop through accessor with matched type
49Fail to set prop through accessor with mismatched type. err: TypeError: Cannot set sendable property with mismatched type
50Start testUpdateInstanceFunction
51Fail to replace instance's func. err: TypeError: Cannot assign to read only property
52Start testUpdatePrototype
53Fail to update prototype. err: TypeError: Cannot add property in prevent extensions
54Fail to extend prop to constructor's prototype. err: TypeError: Cannot add property in prevent extensions
55I'm propString
56Fail to change constructor of instance's prototype. err: TypeError: Cannot assign to read only property
57Fail to replace instance's prototype. err: TypeError: Cannot set proto with sendable object
58Fail to extend instance's prototype. err: TypeError: Cannot define property
59Start testUpdateConstructor
60Fail to modify constructor's method. err: TypeError: Cannot assign to read only property
61Success to modify property to constructor's property.
62Start testDelete
63Fail to delete propNumber. err: TypeError: Cannot delete property
64Start testExtend
65Fail to extend prop with defineProperty. err: TypeError: Cannot define property
66Fail to extend prop1 with defineProperty. err: TypeError: Cannot define property
67Fail to extend prop2 with defineProperties. err: TypeError: Cannot define property
68Fail to extend prop3 with stobjbyname. err: TypeError: Cannot add property in prevent extensions
69Start testObjectProtoFunc
70Start testObjectAssign
71Fail to call Object.assign to extend target. err: TypeError: Cannot add property in prevent extensions
72Fail to call Object.assign to update propString with mismatched type. err: TypeError: Cannot set sendable property with mismatched type
73Success to call Object.assign to update propString
74Start testObjectCreate
75Fail to call Object.create. err: TypeError: Cannot create object with sendable proto
76Start testObjectSetPrototypeOf
77Fail to call Object.setPrototypeOf. err: TypeError: Cannot set proto with sendable object
78Start testObjectAttributesAndExtensible
79Fail to update propNumber to configurable with defineProperty. err: TypeError: Cannot define property
80isFrozen: false
81Success to call Object.freeze
82isFrozen: true
83isSealed: true
84Success to call Object.seal in sealed state
85isExtensible: false
86Success to call Object.preventExtensions in preventExtensions state.
87Start testUpdateWithType
88Fail to update string to int with stobjbynamme. err: TypeError: Cannot set sendable property with mismatched type
89Fail to update bigInt to int with stobjbynamme. err: TypeError: Cannot set sendable property with mismatched type
90Success update bigInt to bigInt with stobjbynamme.
91Fail to update subClassPropSendable to number with defineProperty. err: TypeError: Cannot set sendable property with mismatched type
92I'm constructor for SimpleNumberSendable
93Success update subClassPropSendable to numberSendable with defineProperty.
94Start testKeywords
95typeof sendable object: object
96typeof sendable function: function
97sendable instanceof Object: false
98sendable instanceof SubClass: true
99sendable instanceof SuperClass: true
100Start testNormInherit
101Fail to define normal class inherit from sendable class, err: TypeError: The subclass of sendable class must be a sendable class
102Start testICChecking
103[IC] Fail to update subClassPropString with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 1000
104[IC] Fail to update propNumber with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 1000
105[IC] Fail to update subClassPropString with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 0
106I'm simple sendable's propString
107[IC] Fail to update subClassPropSendable with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 1000
108[IC] Fail to modify constructor's property with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 1000
109[IC] Fail to set prop through accessor with matched type. err: TypeError: Cannot set sendable property with mismatched type
110[IC] Success set prop through accessor with matched type
111Start testSetMismatchedType
112Fail to update propStringOrUndefined to number with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
113Fail to update propNumberOrUndefined to string with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
114Fail to update propBoolOrUndefined to number with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
115Fail to update propBigIntOrUndefined to string with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
116Fail to update propSenableOrUndefined to number with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
117Start testSharedObjectFreeze
118isFrozen: false
119isFrozen: true
120Fail to set properties after frozen. err: TypeError: Cannot assign to read only property
121Start testSharedFunctionFreeze
122isFrozen: false
123isFrozen: true
124Fail to set properties after frozen. err: TypeError: Cannot assign to read only property
125