1/*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16let a = {jj:"kaifa", wo:"tian"};
17Object.defineProperty(a, 'myname', {
18    configurable:false,
19    value:222
20});
21var str = 'j' + 'j';
22var b = undefined;
23var l = new ArrayBuffer(400);
24var v1 = new Int32Array(l);
25var Stack = ArkPrivate.Load(ArkPrivate.Stack);
26var stack = new Stack();
27delete a[str];
28try {
29    print(delete a.hhh);
30} catch (e){
31    print(e);
32}
33try {
34    print(delete b.kk);
35} catch (e){
36    print(e);
37}
38
39try {
40    var str1 = 'my' + 'name';
41    print(delete a[str1]);
42} catch (e){
43    print(e);
44}
45
46try {
47    print(delete v1[1000]);
48} catch (e){
49    print(e);
50}
51
52try {
53    print(delete stack[1000]);
54} catch (e){
55    print(e);
56}
57print(a.myname);
58print(a.jj);
59