/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | binaryIntegerLiteralES6.ts | 37 let obj1 = { 38 AssertType(obj1, "{ 26: string; a: number; bin1: number; b: number; Infinity: boolean; }"); 85 obj1[0b11010]; // string variable 86 AssertType(obj1[0b11010], "string"); 87 AssertType(obj1, "{ 26: string; a: number; bin1: number; b: number; Infinity: boolean; }"); 90 obj1[26]; // string 91 AssertType(obj1[26], "string"); 92 AssertType(obj1, "{ 26: string; a: number; bin1: number; b: number; Infinity: boolean; }"); 95 obj1["26"]; // string 96 AssertType(obj1["26"], "string"); [all …]
|
D | binaryIntegerLiteral.ts | 37 let obj1 = { 38 AssertType(obj1, "{ 26: string; a: number; bin1: number; b: number; Infinity: boolean; }"); 85 obj1[0b11010]; // string variable 86 AssertType(obj1[0b11010], "string"); 87 AssertType(obj1, "{ 26: string; a: number; bin1: number; b: number; Infinity: boolean; }"); 90 obj1[26]; // string 91 AssertType(obj1[26], "string"); 92 AssertType(obj1, "{ 26: string; a: number; bin1: number; b: number; Infinity: boolean; }"); 95 obj1["26"]; // string 96 AssertType(obj1["26"], "string"); [all …]
|
D | octalIntegerLiteral.ts | 37 let obj1 = { 38 AssertType(obj1, "{ 19230: string; a: number; b: number; oct1: number; Infinity: boolean; }"); 85 obj1[0o45436]; // string variable 86 AssertType(obj1[0o45436], "string"); 87 AssertType(obj1, "{ 19230: string; a: number; b: number; oct1: number; Infinity: boolean; }"); 90 obj1["0o45436"]; // any 91 AssertType(obj1["0o45436"], "error"); 92 AssertType(obj1, "{ 19230: string; a: number; b: number; oct1: number; Infinity: boolean; }"); 95 obj1["19230"]; // string 96 AssertType(obj1["19230"], "string"); [all …]
|
D | octalIntegerLiteralES6.ts | 37 let obj1 = { 38 AssertType(obj1, "{ 19230: string; a: number; b: number; oct1: number; Infinity: boolean; }"); 85 obj1[0o45436]; // string variable 86 AssertType(obj1[0o45436], "string"); 87 AssertType(obj1, "{ 19230: string; a: number; b: number; oct1: number; Infinity: boolean; }"); 90 obj1["0o45436"]; // any 91 AssertType(obj1["0o45436"], "error"); 92 AssertType(obj1, "{ 19230: string; a: number; b: number; oct1: number; Infinity: boolean; }"); 95 obj1["19230"]; // string 96 AssertType(obj1["19230"], "string"); [all …]
|
D | contextualTypingOfObjectLiterals.ts | 21 let obj1: { [x: string]: string; }; 22 AssertType(obj1, "{ [string]: string; }"); 31 obj1 = {}; // Ok 32 AssertType(obj1 = {}, "{}"); 33 AssertType(obj1, "{ [string]: string; }"); 36 obj1 = obj2; // Error - indexer doesn't match 37 AssertType(obj1 = obj2, "{ x: string; }"); 38 AssertType(obj1, "{ [string]: string; }"); 48 f(obj1); // Ok 49 AssertType(f(obj1), "void"); [all …]
|
D | typeGuardsObjectMethods.ts | 34 let obj1 = { 35 AssertType(obj1, "{ method(union): union; prop: union; }"); 157 strOrNum = typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum); 158 AssertType(strOrNum = typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum), "union"); 160 AssertType(typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum), "union"); 161 AssertType(typeof obj1.method(strOrNum) === "string", "boolean"); 162 AssertType(typeof obj1.method(strOrNum), "union"); 163 AssertType(obj1.method(strOrNum), "union"); 164 AssertType(obj1.method, "(union) => union"); 167 AssertType(obj1.method(strOrNum), "union"); [all …]
|
D | typeGuardsInProperties.ts | 99 let obj1: { variable 100 AssertType(obj1, "{ x: union; }"); 106 strOrNum = typeof obj1.x === "string" && obj1.x; // string | number 107 AssertType(strOrNum = typeof obj1.x === "string" && obj1.x, "string"); 109 AssertType(typeof obj1.x === "string" && obj1.x, "string"); 110 AssertType(typeof obj1.x === "string", "boolean"); 111 AssertType(typeof obj1.x, "union"); 112 AssertType(obj1.x, "union"); 114 AssertType(obj1.x, "string");
|
D | assignmentCompatability5.ts | 26 …export interface interfaceOne<T> { one: T; }; let obj1: interface… variable 27 export let __val__obj1 = obj1;
|
D | initializePropertiesWithRenamedLet.ts | 28 let obj1 = { x0: x0 }; 29 AssertType(obj1, "{ x0: any; }");
|
/arkcompiler/ets_runtime/test/moduletest/multiprotoic/ |
D | multiprotoic.js | 34 let obj1 = {"b": "2b"}; 42 Object.setPrototypeOf(obj1, proto); 54 obj11.__proto__ = obj1; 55 obj22.__proto__ = obj1; 65 obj1["www"] = "100www"; 81 Object.setPrototypeOf(obj1, proxyOfProto); 82 Object.setPrototypeOf(obj1, proxyOfProto); 95 obj1["zzz"] = "100zzz";
|
/arkcompiler/ets_runtime/test/aottest/defineclasswithbuffer/ |
D | defineclasswithbuffer.ts | 33 var obj1 = new Obj1(1); variable 34 print(obj1.value); 35 print(obj1.fun(2)); 39 print(obj1 instanceof Object);
|
/arkcompiler/ets_runtime/test/moduletest/compareobjecthclass/ |
D | compareobjecthclass.js | 24 let obj1 = {x : 1, y : 2, z :3}; variable 28 if(!ArkTools.compareHClass(obj1, obj2) && ArkTools.compareHClass(obj1, obj3)) {
|
/arkcompiler/ets_runtime/test/moduletest/objectcloneproperties/ |
D | objectcloneproperties.js | 26 var obj1 = { variable 35 var arr = [obj1, obj2, obj3]; 39 0: obj1,
|
/arkcompiler/ets_runtime/test/typeinfer/es2abc_feature/indexsignature_object/ |
D | indexsignature_object.ts | 18 let obj1 : { [v:string]:number } = {value1: 123, value2: 456}; 24 AssertType(obj1.value1, "number"); 25 AssertType(obj1.value2, "number");
|
/arkcompiler/ets_runtime/test/moduletest/loadicbyvalue/ |
D | loadicbyvalue.js | 48 var obj1 = { variable 56 for (let item in obj1) { 57 print(item + " " + obj1[item]);
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_object_test.cpp | 190 JSHandle<JSObject> obj1 = in HWTEST_F_L0() local 205 JSObject::DefineOwnProperty(thread, obj1, key1, desc); in HWTEST_F_L0() 206 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1, value2); in HWTEST_F_L0() 209 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key1).GetValue().GetTaggedV… in HWTEST_F_L0() 218 JSObject::DefineOwnProperty(thread, obj1, key2, desc1); in HWTEST_F_L0() 219 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2, value1); in HWTEST_F_L0() 221 JSObject::DeleteProperty(thread, (obj1), key2); in HWTEST_F_L0() 223 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj1), key2).GetValue().GetTaggedV… in HWTEST_F_L0() 512 JSHandle<JSObject> obj1 = in HWTEST_F_L0() local 514 EXPECT_TRUE(*obj1 != nullptr); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/test/moduletest/setobjectwithproto/ |
D | setobjectwithproto.js | 31 let obj1 = new C32(); variable 32 print(obj1.__proto__ == C32.prototype);
|
/arkcompiler/ets_runtime/test/aottest/duplicatefunctions/ |
D | duplicatefunctions.ts | 37 var obj1 = new Obj1(); variable 42 print(obj1.fun(4, 4));
|
/arkcompiler/ets_frontend/es2panda/test/type_extractor/testcases_with_assert/ |
D | test-constructor-type-as-type-annotation.ts | 42 let obj1 = new MyClass(); variable 48 AssertType(obj1, "MyClass");
|
/arkcompiler/runtime_core/compiler/tests/ |
D | compiler_optimizations_test.cpp | 57 uint32_t obj1 = 1U; variable 59 vn_obj.Add(obj1); 132 uint32_t obj1 = 1U; variable 134 vn_obj.Add(obj1); 145 obj1 = 2U; 147 vn_obj1.Add(obj1);
|
/arkcompiler/ets_runtime/test/moduletest/objoperate/ |
D | objoperate.js | 32 var obj1 = {a:2, b:3, c:4}; variable 33 var obj2 = {d:1, ...obj1, e:5};
|
/arkcompiler/ets_runtime/test/moduletest/linkedhashtable/ |
D | linkedhashtable.js | 23 let obj1 = {"code": 800000005}; variable 24 let res = JSON.stringify(obj1);
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
D | functionCall.ts | 34 var obj1: callAbleObj1; variable 35 func1(func2(func3(obj1)));
|
/arkcompiler/ets_runtime/test/moduletest/stubbuilder/ |
D | stubbuilder.js | 583 var obj1 = {"qq":10}; variable 586 obj1.field1 = obj2; 587 obj1.field2 = obj3; 588 print(obj1) 736 let obj1 = { variable 743 for (let key in obj1) { 744 obj2[key] = obj1[key]; 746 obj1.name = "Tom" 747 print(obj1.name);
|
/arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
D | vn.h | 68 bool operator()(VnObject *obj1, VnObject *obj2) const in operator() 70 return obj1->Compare(obj2); in operator()
|