/arkcompiler/ets_runtime/test/sharedtest/check/ |
D | sharedcheck.ts | 116 } catch (error) { 117 print("Fail to delete propNumber. err: " + error) 126 } catch (error) { 127 print("Fail to extend prop with defineProperty. err: " + error); 133 } catch (error) { 134 print("Fail to extend prop1 with defineProperty. err: " + error) 140 } catch (error) { 141 print("Fail to extend prop2 with defineProperties. err: " + error) 147 } catch (error) { 148 print("Fail to extend prop3 with stobjbyname. err: " + error) [all …]
|
/arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/ |
D | tryldglobalbyname_global_object.ts | 25 } catch (error) { 26 print(error); 37 } catch (error) { 38 print(error); 49 } catch (error) { 50 print(error); 61 } catch (error) { 62 print(error); 73 } catch (error) { 74 print(error); [all …]
|
/arkcompiler/runtime_core/static_core/irtoc/backend/ |
D | dwarf_builder.cpp | 38 [[maybe_unused]] int *error) in CreateSectionCallback() argument 62 Dwarf_Error error {nullptr}; in DwarfBuilder() local 66 this, GetIsaName(GetArch()), "V4", nullptr, &dwarf_, &error); in DwarfBuilder() 67 if (error != DW_DLV_OK) { in DwarfBuilder() 68 LOG(FATAL, COMPILER) << "Dwarf initialization failed: " << dwarf_errmsg(error); in DwarfBuilder() 71 int res = dwarf_pro_set_default_string_form(dwarf_, DW_FORM_string, &error); in DwarfBuilder() 73 LOG(FATAL, COMPILER) << "dwarf_pro_set_default_string_form failed: " << dwarf_errmsg(error); in DwarfBuilder() 76 …eUnitDie_ = dwarf_new_die(dwarf_, DW_TAG_compile_unit, nullptr, nullptr, nullptr, nullptr, &error); in DwarfBuilder() 77 if (error != DW_DLV_OK || IsDwarfBadAddr(compileUnitDie_)) { in DwarfBuilder() 78 LOG(FATAL, COMPILER) << "dwarf_new_die failed: " << dwarf_errmsg(error); in DwarfBuilder() [all …]
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/ |
D | array_native_test_2.cpp | 41 ets_error error = env_->ErrorOccurred(); in TEST_F() local 42 ASSERT_NE(error, nullptr); in TEST_F() 44 ASSERT_EQ(env_->IsInstanceOf(static_cast<ets_object>(error), errorClass), ETS_TRUE); in TEST_F() 49 ets_error error = env_->ErrorOccurred(); in TEST_F() local 50 ASSERT_NE(error, nullptr); in TEST_F() 52 ASSERT_EQ(env_->IsInstanceOf(static_cast<ets_object>(error), errorClass), ETS_TRUE); in TEST_F() 57 ets_error error = env_->ErrorOccurred(); in TEST_F() local 58 ASSERT_NE(error, nullptr); in TEST_F() 60 ASSERT_EQ(env_->IsInstanceOf(static_cast<ets_object>(error), errorClass), ETS_TRUE); in TEST_F() 76 ets_error error = env_->ErrorOccurred(); in TEST_F() local [all …]
|
/arkcompiler/toolchain/tooling/base/ |
D | pt_params.cpp | 22 std::string error; in Create() local 30 error += "Wrong type of 'maxScriptsCacheSize';"; in Create() 33 if (!error.empty()) { in Create() 34 LOG_DEBUGGER(ERROR) << "EnableParams::Create " << error; in Create() 44 std::string error; in Create() local 52 error += "Unknown or wrong type of 'callFrameId';"; in Create() 59 error += "Unknown or wrong type of 'expression';"; in Create() 66 error += "Wrong type of 'objectGroup';"; in Create() 73 error += "Wrong type of 'includeCommandLineAPI';"; in Create() 80 error += "Wrong type of 'silent';"; in Create() [all …]
|
D | pt_types.cpp | 969 std::string error; in Create() local 979 error += "'type' is invalid;"; in Create() 982 error += "Unknown or wrong type of 'type';"; in Create() 991 error += "'subtype' is invalid;"; in Create() 994 error += "Wrong type of 'subtype';"; in Create() 1002 error += "Wrong type of 'className';"; in Create() 1010 error += "Wrong type of 'unserializableValue';"; in Create() 1018 error += "Wrong type of 'description';"; in Create() 1026 error += "Wrong type of 'objectId';"; in Create() 1029 if (!error.empty()) { in Create() [all …]
|
/arkcompiler/ets_runtime/test/moduletest/regresssuper/ |
D | regresssuper.js | 29 } catch (error) { 30 print(error instanceof TypeError); 35 } catch (error) { 36 print(error instanceof TypeError); 41 } catch (error) { 42 print(error instanceof TypeError); 47 } catch (error) { 48 print(error instanceof TypeError);
|
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
D | division-by-zero.ets | 21 } catch (error: ArithmeticException) { 28 } catch (error: ArithmeticException) { 35 } catch (error: ArithmeticException) { 42 } catch (error: ArithmeticException) { 54 } catch (error: ArithmeticException) { 61 } catch (error: ArithmeticException) { 68 } catch (error: ArithmeticException) { 75 } catch (error: ArithmeticException) { 85 } catch (error: ArithmeticException) { 91 } catch (error: ArithmeticException) { [all …]
|
/arkcompiler/ets_runtime/ecmascript/containers/ |
D | containers_plainarray.cpp | 35 JSTaggedValue error = in PlainArrayConstructor() local 38 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in PlainArrayConstructor() 64 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Add() local 66 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Add() 76 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in Add() local 77 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Add() 94 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Clear() local 96 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Clear() 115 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Clone() local 117 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Clone() [all …]
|
D | containers_arraylist.cpp | 40 JSTaggedValue error = in ArrayListConstructor() local 43 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ArrayListConstructor() 65 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Add() local 67 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Add() 87 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Insert() local 89 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Insert() 99 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in Insert() local 100 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Insert() 120 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Clear() local 122 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Clear() [all …]
|
D | containers_list.cpp | 38 JSTaggedValue error = in ListConstructor() local 41 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ListConstructor() 65 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Add() local 67 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Add() 88 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Insert() local 90 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Insert() 100 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in Insert() local 101 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Insert() 120 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetFirst() local 122 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetFirst() [all …]
|
D | containers_lightweightset.cpp | 36 JSTaggedValue error = in LightWeightSetConstructor() local 39 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in LightWeightSetConstructor() 66 JSTaggedValue error = ContainerError::BusinessError(thread, BIND_ERROR, in Add() local 68 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Add() 87 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in AddAll() local 89 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in AddAll() 102 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in AddAll() local 103 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in AddAll() 121 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in IsEmpty() local 123 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IsEmpty() [all …]
|
D | containers_lightweightmap.cpp | 41 JSTaggedValue error = in LightWeightMapConstructor() local 44 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in LightWeightMapConstructor() 72 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Length() local 74 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Length() 93 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in HasAll() local 95 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasAll() 109 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in HasAll() local 110 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasAll() 130 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in HasKey() local 132 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HasKey() [all …]
|
D | containers_linked_list.cpp | 38 JSTaggedValue error = in LinkedListConstructor() local 41 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in LinkedListConstructor() 63 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Add() local 65 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Add() 86 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in AddFirst() local 88 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in AddFirst() 109 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetFirst() local 111 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetFirst() 129 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in GetLast() local 131 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in GetLast() [all …]
|
D | containers_treeset.cpp | 38 JSTaggedValue error = in TreeSetConstructor() local 41 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in TreeSetConstructor() 63 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in TreeSetConstructor() local 64 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in TreeSetConstructor() 83 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Add() local 85 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Add() 107 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Remove() local 109 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Remove() 129 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Has() local 131 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Has() [all …]
|
D | containers_hashmap.cpp | 41 JSTaggedValue error = in HashMapConstructor() local 44 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in HashMapConstructor() 70 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Keys() local 72 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Keys() 91 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Values() local 93 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Values() 112 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Entries() local 114 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Entries() 133 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in ForEach() local 135 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in ForEach() [all …]
|
D | containers_stack.cpp | 38 JSTaggedValue error = in StackConstructor() local 41 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in StackConstructor() 65 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in IsEmpty() local 67 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in IsEmpty() 88 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Push() local 90 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Push() 111 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Peek() local 113 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Peek() 135 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Locate() local 137 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Locate() [all …]
|
D | containers_treemap.cpp | 38 JSTaggedValue error = in TreeMapConstructor() local 41 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in TreeMapConstructor() 64 …JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::TYPE_ERROR, errorMsg.c_str(… in TreeMapConstructor() local 65 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in TreeMapConstructor() 84 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Set() local 86 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Set() 111 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Get() local 113 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Get() 133 JSTaggedValue error = ContainerError::BusinessError(thread, ErrorFlag::BIND_ERROR, in Remove() local 135 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, JSTaggedValue::Exception()); in Remove() [all …]
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_errors_test.cpp | 134 JSHandle<JSFunction> error(env->GetErrorFunction()); in HWTEST_F_L0() local 136 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*error), 4); in HWTEST_F_L0() 137 ecmaRuntimeCallInfo->SetFunction(error.GetTaggedValue()); in HWTEST_F_L0() 138 ecmaRuntimeCallInfo->SetThis(JSTaggedValue(*error)); in HWTEST_F_L0() 168 JSHandle<JSFunction> error(env->GetErrorFunction()); in HWTEST_F_L0() local 171 …auto ecmaRuntimeCallInfo = TestHelper::CreateEcmaRuntimeCallInfo(thread, JSTaggedValue(*error), 6); in HWTEST_F_L0() 172 ecmaRuntimeCallInfo->SetFunction(error.GetTaggedValue()); in HWTEST_F_L0() 173 ecmaRuntimeCallInfo->SetThis(JSTaggedValue(*error)); in HWTEST_F_L0() 205 …JSHandle<JSObject> error = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(errorObject), er… in HWTEST_F_L0() local 209 ecmaRuntimeCallInfo->SetThis(JSTaggedValue(*error)); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_frontend/ets2panda/linter/src/ |
D | CommandLineParser.ts | 96 } catch (error: any) { 97 logger.error('Failed to read response file: ' + (error.message ?? error)); 120 } catch (error: any) { 121 logger.error('Failed to read folder: ' + (error.message ?? error)); 146 logger.error('Failed to read config file.'); 150 } catch (error: any) { 151 logger.error('Failed to read config file: ' + (error.message ?? error));
|
/arkcompiler/ets_frontend/ets2panda/linter-4.2/src/ |
D | CommandLineParser.ts | 95 } catch (error: any) { 96 logger.error('Failed to read response file: ' + (error.message ?? error)); 119 } catch (error: any) { 120 logger.error('Failed to read folder: ' + (error.message ?? error)); 145 logger.error('Failed to read config file.'); 149 } catch (error: any) { 150 logger.error('Failed to read config file: ' + (error.message ?? error));
|
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/ |
D | recipe55.md | 5 **Severity: error** 8 error occurs if these operators are applied to a non-numeric type. Unlike in 45 let b = +"5" // Compile-time error 47 let d = -"5" // Compile-time error 49 let f = ~"5" // Compile-time error 50 let g = +"string" // Compile-time error 60 let x = +returnTen() // Compile-time error 61 let y = +returnString() // Compile-time error
|
/arkcompiler/ets_frontend/ets2panda/linter-4.2/docs/rules/ |
D | recipe55.md | 5 **Severity: error** 8 error occurs if these operators are applied to a non-numeric type. Unlike in 45 let b = +"5" // Compile-time error 47 let d = -"5" // Compile-time error 49 let f = ~"5" // Compile-time error 50 let g = +"string" // Compile-time error 60 let x = +returnTen() // Compile-time error 61 let y = +returnString() // Compile-time error
|
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
D | Error.ets | 19 * Strores information about stacktrace and cause in case of an error. 20 * Serves as a base class for all error classes. 37 * Constructs a new empty error instance 50 * Constructs a new error instance with provided message 52 * @param msg message of the error 62 * Constructs a new error instance with provided message and cause 64 * @param msg message of the error 66 * @param cause cause of the error 76 * Converts this error to a string 77 * Result includes error message and the stacktrace [all …]
|
/arkcompiler/ets_frontend/test262/ |
D | babel-preprocessor.js | 24 } catch (error) { 26 stderr: `${error.name}: ${error.message}\n`, 28 error field
|