Home
last modified time | relevance | path

Searched full:undefined (Results 1 – 25 of 2185) sorted by relevance

12345678910>>...88

/arkcompiler/ets_frontend/es2panda/test/compiler/js/regAllocator/
Dtest-spill-fill-with-env-args.js17 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 …]
Dtest-spill-fill.js17 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 …]
Dtest-range-spill-fill-with-CFG.js19 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 …]
Dtest-spill-fill-with-CFG.js19 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 …]
Dtest-spill-fill-2.js17 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 …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/13.chaining_operator/
Dchop1.sts18 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 …]
Dchop0.sts18 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/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/12.nullish_types/
Dreference_nullable_types.params.yaml34 # 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/test/aottest/calls/
Dexpect_output.txt25 undefined
31 undefined
32 undefined
34 undefined
36 undefined
39 undefined
44 undefined
49 undefined
50 undefined
51 undefined
[all …]
/arkcompiler/ets_frontend/arkguard/test/ut/utils/
DOhsUtil.spec.ts38 it('should return false if heritageClauses is undefined', () => {
39 … const classNode = ts.factory.createClassDeclaration(undefined, "Class", undefined, undefined, []);
43 it('should return false if classNode is undefined', () => {
44 expect(isViewPUBasedClass(undefined)).to.be.false;
47 it('should return false if heritageClause.types is undefined', () => {
48 … const heritageClause = ts.factory.createHeritageClause(ts.SyntaxKind.ExtendsKeyword, undefined);
49 …const classNode = ts.factory.createClassDeclaration(undefined, "Class", undefined, [heritageClause…
53 it('should return false if classNode.heritageClause.types.member is undefined', () => {
54 … const heritageClause = ts.factory.createHeritageClause(ts.SyntaxKind.ExtendsKeyword, [undefined]);
55 …const classNode = ts.factory.createClassDeclaration(undefined, "Class", undefined, [heritageClause…
[all …]
DNodeUtils.spec.ts44 const parent = ts.factory.createBindingElement(undefined, node, 'bindingElement');
50 …const parent = ts.factory.createPropertySignature(undefined, node, undefined, ts.factory.createKey…
56 …const parent = ts.factory.createMethodSignature(undefined, node, undefined, undefined, [], undefin…
68 … parent = ts.factory.createPropertyDeclaration(undefined, undefined, node, undefined, undefined, u…
74 …s.factory.createMethodDeclaration(undefined, undefined, undefined, node, undefined, undefined, [],…
80 … const parent = ts.factory.createSetAccessorDeclaration(undefined, undefined, node, [], undefined);
86 … parent = ts.factory.createGetAccessorDeclaration(undefined, undefined, node, [], undefined, undef…
162 it('should return flase when node is undefined', function () {
163 expect(NodeUtils.isInClassDeclarationForTest(undefined)).to.be.false;
166 …const node = ts.factory.createClassDeclaration(undefined, undefined, undefined, undefined, undefin…
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/09.undefined_type/
Dundefined_incorrect_usage.params.yaml16 - { 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/ets_frontend/ets2panda/test/runtime/ets/
DUnionAsAndInstanceof.sts38 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/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/08.equality_with_null_or_undefined/
Dnull_and_undefined_equality.params.yaml21 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_runtime/test/aottest/object/object_transition/
Dexpect_output.txt33 undefined
34 undefined
42 undefined
43 undefined
44 undefined
45 undefined
46 undefined
47 undefined
48 undefined
49 undefined
[all …]
/arkcompiler/ets_runtime/test/moduletest/elements_kind_generic/
Dexpect_output.txt16 undefined
18 undefined
22 undefined
24 undefined
28 undefined
30 undefined
34 undefined
36 undefined
40 undefined
42 undefined
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/
Dundefined_as_value.ts17 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/ets2panda/test/compiler/ts/
Dundefined_as_value.ts17 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/ecmascript/builtins/tests/
Dbuiltins_math_test.cpp56 …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_frontend/arkguard/src/utils/
DSourceMapUtil.ts35 return undefined;
48 getSourceFileFromReference: undefined,
49 redirectTargetsMap: undefined,
59 getPrependNodes: undefined,
61 getCommonSourceDirectory: undefined,
62 getCompilerOptions: undefined,
64 getNewLine: undefined,
65 getSourceFile: undefined,
66 getSourceFileByPath: undefined,
67 getSourceFiles: undefined,
[all …]
/arkcompiler/ets_runtime/test/moduletest/elements_kind/
Dexpect_output.txt16 undefined
18 undefined
22 undefined
24 undefined
28 undefined
30 undefined
34 undefined
36 undefined
40 undefined
42 undefined
[all …]
/arkcompiler/ets_runtime/test/aottest/not_equal/
Dnot_equal.js19 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/ets_frontend/ets2panda/linter/test/
Dsendable_explicit_field_type.sts40 voidProp: void = undefined;
42 undefinedProp: undefined = undefined;
54 optVoidProp1?: void = undefined;
56 optUndefinedProp1?: undefined = undefined;
68 public optVoidProp2: void = undefined;
70 public optUndefinedProp2: undefined = undefined;
82 readonly optVoidProp3: void = undefined;
84 readonly optUndefinedProp3: undefined = undefined;
97 voidProp4 = undefined;
99 undefinedProp4 = undefined;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/10.Interfaces/10.4.Interface_Members/
Dinterface_with_optional_attributes_0005.sts23 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/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/03.types/References_Types/Type_undefined/
Darray-of-complex-type.sts17 desc: 3.8.9 The only value of type undefined is represented by the keyword undefined
24 n : number | undefined | null = null;
25 s : string | undefined | null = null;
28 type T_ = ComplexClass | undefined | null;
29 type T = Array<ComplexClass> | Array<ComplexClass | undefined> | Array<ComplexClass | null> | Array…
36 if (p === undefined)
40 return undefined;
49 if (tmp === undefined)
50 return undefined;
52 return [null, undefined, new ComplexClass(), {n: null, s: undefined}]
[all …]

12345678910>>...88