# Copyright (c) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. I'm propString I'm propString I'm simple sendable's propString I'm simple sendable's propString I'm simple sendable's propString Start testUpdateInstancePropsToNull Success update propString to null with stobjbyname Success update subClassPropSendable to null with stobjbyname Fail to update propNumber to null with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type Fail to update propBool to null with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type Fail to update propBigInt1 to null with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type Fail to update propBigInt2 to null with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type Success update propStringOrNull to null with stobjbyname Success update propNumberOrNull to null with stobjbyname Success update propBoolOrNull to null with stobjbyname Success update propBigIntOrNull to null with stobjbyname Success update propSenableOrNull to null with stobjbyname Start testUpdateInstancePropsToUndefined Success update propString to undefined with stobjbyname Success update subClassPropSendable to undefined with stobjbyname Success update propNumber to undefined with stobjbyname Success update propBool to undefined with stobjbyname Success update propBigInt1 to undefined with stobjbyname Success update propBigInt2 to undefined with stobjbyname Success update propStringOrUndefined to undefined with stobjbyname Success update propNumberOrUndefined to undefined with stobjbyname Success update propBoolOrUndefined to undefined with stobjbyname Success update propBigIntOrUndefined to undefined with stobjbyname Success update propSenableOrUndefined to undefined with stobjbyname Success update subClassPropString with defineProperties Success update propNumber with defineProperty Fail to update subClassPropString with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type Start testUpdateInstanceAccessor Fail to replace accessor. err: TypeError: Cannot define property Success set prop through accessor with matched type Fail to set prop through accessor with mismatched type. err: TypeError: Cannot set sendable property with mismatched type Start testUpdateInstanceFunction Fail to replace instance's func. err: TypeError: Cannot assign to read only property Start testUpdatePrototype Fail to update prototype. err: TypeError: Cannot add property in prevent extensions Fail to extend prop to constructor's prototype. err: TypeError: Cannot add property in prevent extensions I'm propString Fail to change constructor of instance's prototype. err: TypeError: Cannot assign to read only property Fail to replace instance's prototype. err: TypeError: Cannot set proto with sendable object Fail to extend instance's prototype. err: TypeError: Cannot define property Start testUpdateConstructor Fail to modify constructor's method. err: TypeError: Cannot assign to read only property Success to modify property to constructor's property. Start testDelete Fail to delete propNumber. err: TypeError: Cannot delete property Start testExtend Fail to extend prop with defineProperty. err: TypeError: Cannot define property Fail to extend prop1 with defineProperty. err: TypeError: Cannot define property Fail to extend prop2 with defineProperties. err: TypeError: Cannot define property Fail to extend prop3 with stobjbyname. err: TypeError: Cannot add property in prevent extensions Start testObjectProtoFunc Start testObjectAssign Fail to call Object.assign to extend target. err: TypeError: Cannot add property in prevent extensions Fail to call Object.assign to update propString with mismatched type. err: TypeError: Cannot set sendable property with mismatched type Success to call Object.assign to update propString Start testObjectCreate Fail to call Object.create. err: TypeError: Cannot create object with sendable proto Start testObjectSetPrototypeOf Fail to call Object.setPrototypeOf. err: TypeError: Cannot set proto with sendable object Start testObjectAttributesAndExtensible Fail to update propNumber to configurable with defineProperty. err: TypeError: Cannot define property isFrozen: false Success to call Object.freeze isFrozen: true isSealed: true Success to call Object.seal in sealed state isExtensible: false Success to call Object.preventExtensions in preventExtensions state. Start testUpdateWithType Fail to update string to int with stobjbynamme. err: TypeError: Cannot set sendable property with mismatched type Fail to update bigInt to int with stobjbynamme. err: TypeError: Cannot set sendable property with mismatched type Success update bigInt to bigInt with stobjbynamme. Fail to update subClassPropSendable to number with defineProperty. err: TypeError: Cannot set sendable property with mismatched type I'm constructor for SimpleNumberSendable Success update subClassPropSendable to numberSendable with defineProperty. Start testKeywords typeof sendable object: object typeof sendable function: function sendable instanceof Object: false sendable instanceof SubClass: true sendable instanceof SuperClass: true Start testNormInherit Fail to define normal class inherit from sendable class, err: TypeError: The subclass of sendable class must be a sendable class Start testICChecking [IC] Fail to update subClassPropString with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 1000 [IC] Fail to update propNumber with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 1000 [IC] Fail to update subClassPropString with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 0 I'm simple sendable's propString [IC] Fail to update subClassPropSendable with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 1000 [IC] Fail to modify constructor's property with mismatch type. err: TypeError: Cannot set sendable property with mismatched type, loopIndex: 1000 [IC] Fail to set prop through accessor with matched type. err: TypeError: Cannot set sendable property with mismatched type [IC] Success set prop through accessor with matched type Start testSetMismatchedType Fail to update propStringOrUndefined to number with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type Fail to update propNumberOrUndefined to string with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type Fail to update propBoolOrUndefined to number with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type Fail to update propBigIntOrUndefined to string with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type Fail to update propSenableOrUndefined to number with stobjbyname. err: TypeError: Cannot set sendable property with mismatched type Start testSharedObjectFreeze isFrozen: false isFrozen: true Fail to set properties after frozen. err: TypeError: Cannot assign to read only property Start testSharedFunctionFreeze isFrozen: false isFrozen: true Fail to set properties after frozen. err: TypeError: Cannot assign to read only property