Home
last modified time | relevance | path

Searched full:jsint (Results 1 - 25 of 25) sorted by relevance

/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_call_params/sts_to_ts/
H A Dcheck_apply_function_generic.js17 jsInt,
28 ASSERT_TRUE(applyFunctionGeneric(jsInt, jsInt, add) === jsInt + jsInt);
34 ASSERT_TRUE(applyFunctionGeneric(jsInt, jsInt, add) === jsInt + jsInt);
H A Dcheck_generic_extends_class.js17 jsInt,
27 const GClass = new Vector(jsInt);
29 const res = genericExtendsClass(new Vector(jsInt));
31 ASSERT_TRUE(res.get() === jsInt + jsInt);
35 const res = genericExtendsClassCallFromSts(new Vector(jsInt));
37 ASSERT_TRUE(res.get() === jsInt + jsInt);
H A Dcheck_generic_subset_class.js17 jsInt,
29 ASSERT_TRUE(GClass.get(jsInt, jsInt, add) === jsInt + jsInt);
34 ASSERT_TRUE(subsetClassCallFromSts() === jsInt + jsInt);
H A Dcheck_apply_function_with_constraints.js17 jsInt,
29 ASSERT_TRUE(applyFunctionWithConstraints(jsInt, jsString, concat) === concat(jsInt, jsString));
33 ASSERT_TRUE(applyFunctionWithConstraintsFromSts(jsInt, jsString) === concat(jsInt, jsString));
H A Dcheck_apply_function_generic_union.js17 jsInt,
26 ASSERT_TRUE(applyFunctionGenericUnion(jsInt, jsInt, add) === jsInt + jsInt);
H A Dcheck_apply_function_generic_array.js17 jsInt,
27 const arr = [jsInt, jsInt];
32 const arr = [jsInt, jsInt];
H A Dcheck_apply_function_generics.js17 jsInt,
29 ASSERT_TRUE(applyFunctionGenerics(jsInt, jsString, concat) === jsInt + ' ' + jsString);
36 ASSERT_TRUE(applyFunctionGenerics(jsInt, jsString, concat) === jsInt + ' ' + jsString);
H A Dgeneric_call_params.test.js18 const jsInt = 1;
21 const jsArr = [jsInt];
23 const jsTuple = [jsInt, jsBool];
37 jsInt,
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_static/sts_to_js/
H A Dgeneric_static.test.js17 const jsInt = 1;
20 const jsArr = [jsInt];
22 const jsTuple = [jsInt, jsBool];
25 const jsUser = { num: jsInt };
26 const jsBaseObj = { a: jsInt };
27 const jsArrInt = [jsInt];
44 jsInt,
H A Dcheck_static_method.js17 jsInt,
30 ASSERT_TRUE(GenericStatic.get(jsInt) === jsInt);
47 ASSERT_TRUE(genericStaticMethodCallFromSts(jsInt) === jsInt);
H A Dcheck_class_extends.js17 jsInt,
30 ASSERT_TRUE(GenericExtends.get(jsInt) === jsInt);
47 ASSERT_TRUE(genericClassExtendsCallFromSts(jsInt) === jsInt);
H A Dcheck_generic_union_static.js17 jsInt,
27 ASSERT_TRUE(UnionStatic.get(jsInt) === jsInt);
35 ASSERT_TRUE(genericUnionStaticCallFromSts(jsInt) === jsInt);
H A Dcheck_user_class.js17 jsInt,
28 ASSERT_TRUE(checkInstance(UserClassStatic.get(new User(jsInt)), User));
32 ASSERT_TRUE(checkInstance(userClassFromSts(new User(jsInt)), User));
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_as_parameter/sts_to_ts/
H A Dcheck_generic_default_type.js19 jsInt,
46 ASSERT_TRUE(genericDefaultInt(jsInt) === jsInt);
77 ASSERT_TRUE(genericDefaultIntCallFromEts() === jsInt);
103 ASSERT_TRUE(genericDefaultUnionCallFromEts() === jsInt);
107 ASSERT_TRUE(genericDefaultLiteralCallFromEts() === jsInt);
111 ASSERT_TRUE(genericDefaultLiteral(jsInt) === jsInt);
H A Dcheck_collect_generic.js19 jsInt,
27 const res = collectGeneric(...[jsInt]);
29 ASSERT_TRUE(checkArray(res) && res[0] === jsInt);
45 const res = collectGeneric(jsInt, jsInt);
47 ASSERT_TRUE(checkArray(res) && res[0] === jsInt && res[1] === jsInt);
H A Dcheck_any_type_parameter.js19 jsInt,
38 ASSERT_TRUE(anyTypeParameter(jsInt) === jsInt);
64 ASSERT_TRUE(anyTypeParameterExplicitCallFromEtsInt() === jsInt);
85 ASSERT_TRUE(anyTypeParameterExplicitCallFromEtsUnion() === jsInt);
H A Dcheck_generic_constructor.js19 jsInt,
28 const user = new UserClass(jsString, jsInt);
30 ASSERT_TRUE(checkObj(user) && user.getName() === jsString && user.getAge() === jsInt);
36 ASSERT_TRUE(checkObj(user) && user.getName() === jsString && user.getAge() === jsInt);
H A Dgeneric_as_parameter.test.js18 const jsInt = 1;
21 const jsArr = [jsInt];
23 const jsTuple = [jsInt, jsBool];
37 jsInt,
H A Dcheck_tuple_parameter_generic.js19 jsInt,
26 const res = tupleGeneric([jsInt, jsString]);
29 res[1] === jsInt);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/callable_signature/sts_to_js/
H A Dcheck_callable_signature.js17 jsInt,
25 ASSERT_TRUE(invokeMethodFromSts(jsInt, jsInt) === jsInt + jsInt);
H A Dcheck_call_invoke_instantiate.js17 jsInt,
26 InvokeClass(jsInt, jsInt);
H A Dcallable_signature.test.js19 const jsInt = 1;
29 jsInt,
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/dot_operator/sts_to_js/
H A Dcheck_call_chaining.js18 jsInt,
26 const resChaining = Obj.arr.reverse().map(i => i + jsInt).filter(i => i > jsInt).sort().reduce((a, b) => a - b);
H A Ddot_operator.test.js18 const jsInt = 1;
24 jsInt,
/base/request/request/frameworks/js/napi/src/
H A Dnapi_utils.cpp158 napi_value jsInt = Convert2JSValue(env, cInt); in Convert2JSValue() local
159 napi_set_element(env, value, index++, jsInt); in Convert2JSValue()

Completed in 8 milliseconds