| /arkcompiler/ets_frontend/es2panda/test/compiler/js/regAllocator/ |
| D | test-spill-fill.js | 17 let a = undefined; 18 let aa = undefined; 19 let aaa = undefined; 20 let aaaa = undefined; 21 let aaaaa = undefined; 22 let aaaaaa = undefined; 23 let aaaaaaa = undefined; 24 let aaaaaaaa = undefined; 25 let b = undefined; 26 let bb = undefined; [all …]
|
| D | test-spill-fill-with-env-args.js | 17 let a = undefined; 18 let aa = undefined; 19 let aaa = undefined; 20 let aaaa = undefined; 21 let aaaaa = undefined; 22 let aaaaaa = undefined; 23 let aaaaaaa = undefined; 24 let aaaaaaaa = undefined; 25 let b = undefined; 26 let bb = undefined; [all …]
|
| D | test-spill-fill-2.js | 17 let a = undefined; 18 let aa = undefined; 19 let aaa = undefined; 20 let aaaa = undefined; 21 let aaaaa = undefined; 22 let aaaaaa = undefined; 23 let aaaaaaa = undefined; 24 let aaaaaaaa = undefined; 25 let b = undefined; 26 let bb = undefined; [all …]
|
| D | test-range-spill-fill-with-CFG.js | 19 let a = undefined; 20 let aa = undefined; 21 let aaa = undefined; 22 let aaaa = undefined; 23 let aaaaa = undefined; 24 let aaaaaa = undefined; 25 let aaaaaaa = undefined; 26 let aaaaaaaa = undefined; 27 let b = undefined; 28 let bb = undefined; [all …]
|
| D | test-spill-fill-with-CFG.js | 19 let a = undefined; 20 let aa = undefined; 21 let aaa = undefined; 22 let aaaa = undefined; 23 let aaaaa = undefined; 24 let aaaaaa = undefined; 25 let aaaaaaa = undefined; 26 let aaaaaaaa = undefined; 27 let b = undefined; 28 let bb = undefined; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/13.chaining_operator/ |
| D | chop1.sts | 18 If the object to the left of ('?.') is undefined or null, then the evaluation of the entire 19 surrounding expression is dropped, and undefined is used as the result of the expression. 28 fldA: string|undefined = "abc" 29 fldAn: string|undefined = undefined 30 metA(p: string): string|undefined { 31 return p == "undefined" ? undefined : p 36 fldB: A|undefined = new A() 37 fldBn: A|undefined = undefined 38 metB(p: string): A|undefined { 39 return p == "undefined" ? undefined : new A() [all …]
|
| D | chop0.sts | 18 If the object to the left of ('?.') is undefined or null, then the evaluation of the entire 19 surrounding expression is dropped, and undefined is used as the result of the expression. 59 test(boo("not null")?.fldBn?.fldA === undefined) 60 test(boo("not null")?.fldBn?.fldAn === undefined) 61 test(boo("not null")?.fldBn?.metA("xyz") === undefined) 62 test(boo("not null")?.fldBn?.metA("null") === undefined) 64 test(boo("not null")?.metB("null")?.fldA === undefined) 65 test(boo("not null")?.metB("null")?.fldAn === undefined) 66 test(boo("not null")?.metB("null")?.metA("xyz") === undefined) 67 test(boo("not null")?.metB("null")?.metA("null") === undefined) [all …]
|
| /arkcompiler/ets_runtime/test/aottest/calls/ |
| D | expect_output.txt | 25 undefined 31 undefined 32 undefined 34 undefined 36 undefined 39 undefined 44 undefined 49 undefined 50 undefined 51 undefined [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/13.nullish_types/ |
| D | reference_nullable_types.params.yaml | 34 # undefined 35 - {type: "Byte|undefined", value: "5"} 36 - {type: "Byte|undefined", value: "undefined"} 37 - {type: "Short|undefined", value: "5"} 38 - {type: "Short|undefined", value: "undefined"} 39 - {type: "Int|undefined", value: "5"} 40 - {type: "Int|undefined", value: "undefined"} 41 - {type: "Long|undefined", value: "5 as long"} 42 - {type: "Long|undefined", value: "undefined"} 43 - {type: "Float|undefined", value: "5.0"} [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
| D | builtins_call_signature_list.h | 55 …V(CodePointAt, String, Undefined(), STRING_CODE_POINT_AT) … 58 …V(SubStr, String, Undefined(), STRING_SUB_STR) … 59 …V(Replace, String, Undefined(), STRING_REPLACE) … 60 …V(Trim, String, Undefined(), STRING_TRIM) … 61 …V(TrimStart, String, Undefined(), STRING_TRIM_START) … 62 …V(TrimEnd, String, Undefined(), STRING_TRIM_END) … 63 …V(TrimLeft, String, Undefined(), STRING_TRIM_LEFT) … 64 …V(TrimRight, String, Undefined(), STRING_TRIM_RIGHT) … 65 …V(PadStart, String, Undefined(), STRING_PAD_START) … 66 …V(PadEnd, String, Undefined(), STRING_PAD_END) … [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/10.undefined_type/ |
| D | undefined_incorrect_usage.params.yaml | 16 - { declaration: 'undefined class A {}', usage: 'let a = new A' } 17 - { declaration: 'class undefined {}', usage: 'let a = new undefined()' } 18 - { declaration: 'undefined interface I {}', usage: 'let a = 1' } 19 - { declaration: 'undefined function foo() { return 1}', usage: 'assert foo() == 2' } 20 - { declaration: 'function undefined() { return 1}', usage: 'assert undefined() == 1' } 21 - { declaration: 'undefined foo() { return 1}', usage: 'assert foo() == 1' } 22 - { declaration: 'function foo(undefined int) { return 1}', usage: 'assert foo() == undefined' } 23 - { declaration: 'class A { undefined:int = 1 }', usage: 'assert new A().undefined == 1' } 24 - { declaration: 'class A { static undefined:int = 1 }', usage: 'assert A.undefined == 1' } 25 …- { declaration: 'class A { undefined:undefined = undefined }', usage: 'assert new A().undefined =… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/08.equality_with_null_or_undefined/ |
| D | null_and_undefined_equality.params.yaml | 21 let a: undefined; 22 assert a == undefined; 25 let a: undefined|null; 26 assert a == undefined; 31 let a: A|undefined|null; 32 assert a == undefined; 37 let a: A|undefined|null; 43 let a: A|undefined|null; 44 assert a === undefined; 49 let a: A|undefined|null; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | UnionAsAndInstanceof.sts | 38 function foo(x: Object | null | undefined) { return x as Object } 43 assert_ccexc(() => { let f = ((x: Object | null | undefined) => x as Object); f(null); }); 44 assert_ccexc(() => { let f = ((x: Object | null | undefined) => x as Object); f(undefined); }); 46 assert_ccexc(() => { let f = ((x: Object | undefined) => x as Object); f(undefined); }); 48 …assert_ccexc(() => { let f = ((x: Object | null | undefined) => x as Object | undefined); f(null);… 49 …assert_ccexc(() => { let f = ((x: Object | null | undefined) => x as Object | null); f(undefined);… 50 assert_ccexc(() => { let f = ((x: Object | null) => x as Object | undefined); f(null); }); 51 assert_ccexc(() => { let f = ((x: Object | undefined) => x as Object | null); f(undefined); }); 53 assert_ccexc(() => { let f = ((x: A | null | undefined) => x as A); f(null); }); 54 assert_ccexc(() => { let f = ((x: A | null | undefined) => x as A); f(undefined); }); [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/ut/utils/ |
| D | OhsUtil.spec.ts | 48 it('should return false if heritageClauses is undefined', () => { 49 … const classNode = ts.factory.createClassDeclaration(undefined, "Class", undefined, undefined, []); 53 it('should return false if classNode is undefined', () => { 54 expect(isViewPUBasedClass(undefined)).to.be.false; 57 it('should return false if heritageClause.types is undefined', () => { 58 … const heritageClause = ts.factory.createHeritageClause(ts.SyntaxKind.ExtendsKeyword, undefined); 59 …const classNode = ts.factory.createClassDeclaration(undefined, "Class", undefined, [heritageClause… 63 it('should return false if classNode.heritageClause.types.member is undefined', () => { 64 … const heritageClause = ts.factory.createHeritageClause(ts.SyntaxKind.ExtendsKeyword, [undefined]); 65 …const classNode = ts.factory.createClassDeclaration(undefined, "Class", undefined, [heritageClause… [all …]
|
| /arkcompiler/ets_runtime/test/aottest/object/object_transition/ |
| D | expect_output.txt | 33 undefined 34 undefined 42 undefined 43 undefined 44 undefined 45 undefined 46 undefined 47 undefined 48 undefined 49 undefined [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ts/ |
| D | undefined_as_value.ts | 17 let a: undefined = undefined; 18 let b: undefined[] = [undefined, undefined]; variable 19 let c = [undefined, undefined, undefined]; variable 21 function foo(a: undefined) : undefined { 22 return undefined; 25 foo(undefined);
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
| D | undefined_as_value.ts | 17 let a: undefined = undefined; 18 let b: undefined[] = [undefined, undefined]; variable 19 let c = [undefined, undefined, undefined]; variable 21 function foo(a: undefined) : undefined { 22 return undefined; 25 foo(undefined);
|
| /arkcompiler/ets_runtime/test/moduletest/elements_kind_generic/ |
| D | expect_output.txt | 16 undefined 18 undefined 22 undefined 24 undefined 28 undefined 30 undefined 34 undefined 36 undefined 40 undefined 42 undefined [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_math_test.cpp | 56 …cmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread_, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() 57 ecmaRuntimeCallInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 58 ecmaRuntimeCallInfo->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0() 71 …cmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread_, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() 72 ecmaRuntimeCallInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 73 ecmaRuntimeCallInfo->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0() 86 …cmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread_, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() 87 ecmaRuntimeCallInfo->SetFunction(JSTaggedValue::Undefined()); in HWTEST_F_L0() 88 ecmaRuntimeCallInfo->SetThis(JSTaggedValue::Undefined()); in HWTEST_F_L0() 101 …cmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread_, JSTaggedValue::Undefined(), 6); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/elements_kind/ |
| D | expect_output.txt | 16 undefined 18 undefined 22 undefined 24 undefined 28 undefined 30 undefined 34 undefined 36 undefined 40 undefined 42 undefined [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/internstring/ |
| D | expect_output.txt | 14 id: 12345678 - load: undefined 15 id: 1234567891 - load: undefined 16 id: 9999999999 - load: undefined 17 id: 135 - load: undefined 18 id: 0 - load: undefined 19 id: abc - load: undefined 20 id: cba - load: undefined 28 id: 12345678 - load: undefined 29 id: 1234567891 - load: undefined 30 id: 9999999999 - load: undefined [all …]
|
| /arkcompiler/ets_frontend/arkguard/src/utils/ |
| D | SourceMapUtil.ts | 44 getSourceFileFromReference: undefined, 45 redirectTargetsMap: undefined, 55 getPrependNodes: undefined, 57 getCommonSourceDirectory: undefined, 58 getCompilerOptions: undefined, 60 getNewLine: undefined, 61 getSourceFile: undefined, 62 getSourceFileByPath: undefined, 63 getSourceFiles: undefined, 64 getLibFileFromReference: undefined, [all …]
|
| /arkcompiler/ets_runtime/test/aottest/not_equal/ |
| D | not_equal.js | 19 print(a != undefined); 20 print(undefined != a); 25 print(b != undefined); 26 print(undefined != b); 28 var c = undefined; 31 print(c != undefined); 32 print(undefined != c); 37 print(d !== undefined); 38 print(undefined !== d); 43 print(e !== undefined); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/10.Interfaces/10.4.Interface_Members/ |
| D | interface_with_optional_attributes_0005.sts | 23 name?: string | undefined; 24 age?: int | undefined; 25 desc?: string | undefined; 26 teacher?: Teacher | undefined 34 name?: string | undefined; 35 age?: int | undefined; 36 desc?: string | undefined; 37 teacher?: Teacher | undefined 43 assert s0.name == undefined 44 assert s0.age == undefined [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | undefined_check_calls.sts | 21 function g1(): C1 | undefined { 25 return undefined 30 bar(undefined); 31 bar(undefined, undefined); 32 applyToUnknown(undefined); 33 fooExecute(undefined); 37 fff(undefined); 38 ff(undefined); 39 f(undefined); 55 myFoo({x: "", y: undefined}) [all …]
|