Home
last modified time | relevance | path

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

12345678910>>...98

/arkcompiler/ets_frontend/es2panda/test/compiler/js/regAllocator/
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-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-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 …]
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 …]
/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/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/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/13.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/ecmascript/compiler/builtins/
Dbuiltins_call_signature_list.h55 …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/
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/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_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/ets_frontend/arkguard/test/ut/utils/
DOhsUtil.spec.ts48 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/
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_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_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_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_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_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/moduletest/internstring/
Dexpect_output.txt14 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/
DSourceMapUtil.ts44 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/
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/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/ets_frontend/ets2panda/linter/test/main/
Dundefined_check_calls.sts21 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 …]

12345678910>>...98