14514f5e3Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
24514f5e3Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
34514f5e3Sopenharmony_ci# you may not use this file except in compliance with the License.
44514f5e3Sopenharmony_ci# You may obtain a copy of the License at
54514f5e3Sopenharmony_ci#
64514f5e3Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
74514f5e3Sopenharmony_ci#
84514f5e3Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
94514f5e3Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
104514f5e3Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
114514f5e3Sopenharmony_ci# See the License for the specific language governing permissions and
124514f5e3Sopenharmony_ci# limitations under the License.
134514f5e3Sopenharmony_ci
144514f5e3Sopenharmony_ciI'm propString
154514f5e3Sopenharmony_ciI'm propString
164514f5e3Sopenharmony_ciI'm simple sendable's propString
174514f5e3Sopenharmony_ciI'm simple sendable's propString
184514f5e3Sopenharmony_ciI'm simple sendable's propString
194514f5e3Sopenharmony_ciStart testUpdateInstancePropsToNull
204514f5e3Sopenharmony_ciSuccess update propString to null with stobjbyname
214514f5e3Sopenharmony_ciSuccess update subClassPropSendable to null with stobjbyname
224514f5e3Sopenharmony_ciFail to update propNumber to null with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
234514f5e3Sopenharmony_ciFail to update propBool to null with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
244514f5e3Sopenharmony_ciFail to update propBigInt1 to null with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
254514f5e3Sopenharmony_ciFail to update propBigInt2 to null with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
264514f5e3Sopenharmony_ciSuccess update propStringOrNull to null with stobjbyname
274514f5e3Sopenharmony_ciSuccess update propNumberOrNull to null with stobjbyname
284514f5e3Sopenharmony_ciSuccess update propBoolOrNull to null with stobjbyname
294514f5e3Sopenharmony_ciSuccess update propBigIntOrNull to null with stobjbyname
304514f5e3Sopenharmony_ciSuccess update propSenableOrNull to null with stobjbyname
314514f5e3Sopenharmony_ciStart testUpdateInstancePropsToUndefined
324514f5e3Sopenharmony_ciSuccess update propString to undefined with stobjbyname
334514f5e3Sopenharmony_ciSuccess update subClassPropSendable to undefined with stobjbyname
344514f5e3Sopenharmony_ciSuccess update propNumber to undefined with stobjbyname
354514f5e3Sopenharmony_ciSuccess update propBool to undefined with stobjbyname
364514f5e3Sopenharmony_ciSuccess update propBigInt1 to undefined with stobjbyname
374514f5e3Sopenharmony_ciSuccess update propBigInt2 to undefined with stobjbyname
384514f5e3Sopenharmony_ciSuccess update propStringOrUndefined to undefined with stobjbyname
394514f5e3Sopenharmony_ciSuccess update propNumberOrUndefined to undefined with stobjbyname
404514f5e3Sopenharmony_ciSuccess update propBoolOrUndefined to undefined with stobjbyname
414514f5e3Sopenharmony_ciSuccess update propBigIntOrUndefined to undefined with stobjbyname
424514f5e3Sopenharmony_ciSuccess update propSenableOrUndefined to undefined with stobjbyname
434514f5e3Sopenharmony_ciSuccess update subClassPropString with defineProperties
444514f5e3Sopenharmony_ciSuccess update propNumber with defineProperty
454514f5e3Sopenharmony_ciFail to update subClassPropString with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
464514f5e3Sopenharmony_ciStart testUpdateInstanceAccessor
474514f5e3Sopenharmony_ciFail to replace accessor. err: TypeError: Cannot define property
484514f5e3Sopenharmony_ciSuccess set prop through accessor with matched type
494514f5e3Sopenharmony_ciFail to set prop through accessor with mismatched type. err: TypeError: Cannot set sendable property with mismatched type
504514f5e3Sopenharmony_ciStart testUpdateInstanceFunction
514514f5e3Sopenharmony_ciFail to replace instance's func. err: TypeError: Cannot assign to read only property
524514f5e3Sopenharmony_ciStart testUpdatePrototype
534514f5e3Sopenharmony_ciFail to update prototype. err: TypeError: Cannot add property in prevent extensions
544514f5e3Sopenharmony_ciFail to extend prop to constructor's prototype. err: TypeError: Cannot add property in prevent extensions
554514f5e3Sopenharmony_ciI'm propString
564514f5e3Sopenharmony_ciFail to change constructor of instance's prototype. err: TypeError: Cannot assign to read only property
574514f5e3Sopenharmony_ciFail to replace instance's prototype. err: TypeError: Cannot set proto with sendable object
584514f5e3Sopenharmony_ciFail to extend instance's prototype. err: TypeError: Cannot define property
594514f5e3Sopenharmony_ciStart testUpdateConstructor
604514f5e3Sopenharmony_ciFail to modify constructor's method. err: TypeError: Cannot assign to read only property
614514f5e3Sopenharmony_ciSuccess to modify property to constructor's property.
624514f5e3Sopenharmony_ciStart testDelete
634514f5e3Sopenharmony_ciFail to delete propNumber. err: TypeError: Cannot delete property
644514f5e3Sopenharmony_ciStart testExtend
654514f5e3Sopenharmony_ciFail to extend prop with defineProperty. err: TypeError: Cannot define property
664514f5e3Sopenharmony_ciFail to extend prop1 with defineProperty. err: TypeError: Cannot define property
674514f5e3Sopenharmony_ciFail to extend prop2 with defineProperties. err: TypeError: Cannot define property
684514f5e3Sopenharmony_ciFail to extend prop3 with stobjbyname. err: TypeError: Cannot add property in prevent extensions
694514f5e3Sopenharmony_ciStart testObjectProtoFunc
704514f5e3Sopenharmony_ciStart testObjectAssign
714514f5e3Sopenharmony_ciFail to call Object.assign to extend target. err: TypeError: Cannot add property in prevent extensions
724514f5e3Sopenharmony_ciFail to call Object.assign to update propString with mismatched type. err: TypeError: Cannot set sendable property with mismatched type
734514f5e3Sopenharmony_ciSuccess to call Object.assign to update propString
744514f5e3Sopenharmony_ciStart testObjectCreate
754514f5e3Sopenharmony_ciFail to call Object.create. err: TypeError: Cannot create object with sendable proto
764514f5e3Sopenharmony_ciStart testObjectSetPrototypeOf
774514f5e3Sopenharmony_ciFail to call Object.setPrototypeOf. err: TypeError: Cannot set proto with sendable object
784514f5e3Sopenharmony_ciStart testObjectAttributesAndExtensible
794514f5e3Sopenharmony_ciFail to update propNumber to configurable with defineProperty. err: TypeError: Cannot define property
804514f5e3Sopenharmony_ciisFrozen: false
814514f5e3Sopenharmony_ciSuccess to call Object.freeze
824514f5e3Sopenharmony_ciisFrozen: true
834514f5e3Sopenharmony_ciisSealed: true
844514f5e3Sopenharmony_ciSuccess to call Object.seal in sealed state
854514f5e3Sopenharmony_ciisExtensible: false
864514f5e3Sopenharmony_ciSuccess to call Object.preventExtensions in preventExtensions state.
874514f5e3Sopenharmony_ciStart testUpdateWithType
884514f5e3Sopenharmony_ciFail to update string to int with stobjbynamme. err: TypeError: Cannot set sendable property with mismatched type
894514f5e3Sopenharmony_ciFail to update bigInt to int with stobjbynamme. err: TypeError: Cannot set sendable property with mismatched type
904514f5e3Sopenharmony_ciSuccess update bigInt to bigInt with stobjbynamme.
914514f5e3Sopenharmony_ciFail to update subClassPropSendable to number with defineProperty. err: TypeError: Cannot set sendable property with mismatched type
924514f5e3Sopenharmony_ciI'm constructor for SimpleNumberSendable
934514f5e3Sopenharmony_ciSuccess update subClassPropSendable to numberSendable with defineProperty.
944514f5e3Sopenharmony_ciStart testKeywords
954514f5e3Sopenharmony_citypeof sendable object: object
964514f5e3Sopenharmony_citypeof sendable function: function
974514f5e3Sopenharmony_cisendable instanceof Object: false
984514f5e3Sopenharmony_cisendable instanceof SubClass: true
994514f5e3Sopenharmony_cisendable instanceof SuperClass: true
1004514f5e3Sopenharmony_ciStart testNormInherit
1014514f5e3Sopenharmony_ciFail to define normal class inherit from sendable class, err: TypeError: The subclass of sendable class must be a sendable class
1024514f5e3Sopenharmony_ciStart testICChecking
1034514f5e3Sopenharmony_ci[IC] Fail to update subClassPropString with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 1000
1044514f5e3Sopenharmony_ci[IC] Fail to update propNumber with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 1000
1054514f5e3Sopenharmony_ci[IC] Fail to update subClassPropString with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 0
1064514f5e3Sopenharmony_ciI'm simple sendable's propString
1074514f5e3Sopenharmony_ci[IC] Fail to update subClassPropSendable with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 1000
1084514f5e3Sopenharmony_ci[IC] Fail to modify constructor's property with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 1000
1094514f5e3Sopenharmony_ci[IC] Fail to set prop through accessor with matched type. err: TypeError: Cannot set sendable property with mismatched type
1104514f5e3Sopenharmony_ci[IC] Success set prop through accessor with matched type
1114514f5e3Sopenharmony_ciStart testSetMismatchedType
1124514f5e3Sopenharmony_ciFail to update propStringOrUndefined to number with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
1134514f5e3Sopenharmony_ciFail to update propNumberOrUndefined to string with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
1144514f5e3Sopenharmony_ciFail to update propBoolOrUndefined to number with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
1154514f5e3Sopenharmony_ciFail to update propBigIntOrUndefined to string with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
1164514f5e3Sopenharmony_ciFail to update propSenableOrUndefined to number with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type
1174514f5e3Sopenharmony_ciStart testSharedObjectFreeze
1184514f5e3Sopenharmony_ciisFrozen: false
1194514f5e3Sopenharmony_ciisFrozen: true
1204514f5e3Sopenharmony_ciFail to set properties after frozen. err: TypeError: Cannot assign to read only property
1214514f5e3Sopenharmony_ciStart testSharedFunctionFreeze
1224514f5e3Sopenharmony_ciisFrozen: false
1234514f5e3Sopenharmony_ciisFrozen: true
1244514f5e3Sopenharmony_ciFail to set properties after frozen. err: TypeError: Cannot assign to read only property
125