Home
last modified time | relevance | path

Searched refs:GetJSError (Results 1 – 22 of 22) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_errors.cpp22 JSHandle<JSObject> error = factory->GetJSError(ErrorType::ERROR, msg); in BusinessError()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_async_from_sync_iterator.cpp122 …factory->GetJSError(ErrorType::TYPE_ERROR, "AsyncFromSyncIteratorPrototype.throw: is not Object."); in Throw()
197 …factory->GetJSError(ErrorType::TYPE_ERROR, "AsyncFromSyncIteratorPrototype.return: is not Object."… in Return()
Dbuiltins_json.cpp41 …JSHandle<JSObject> syntaxError = factory->GetJSError(base::ErrorType::SYNTAX_ERROR, "arg is empty"… in Parse()
Dbuiltins_promise_job.cpp187 …JSTaggedValue error = factory->GetJSError(ErrorType::REFERENCE_ERROR, msg.c_str()).GetTaggedValue(… in DynamicImportJob()
195 …JSTaggedValue error = factory->GetJSError(ErrorType::REFERENCE_ERROR, msg.c_str()).GetTaggedValue(… in DynamicImportJob()
Dbuiltins_map.cpp296 …JSHandle<JSObject> typeError = factory->GetJSError(ErrorType::TYPE_ERROR, "nextItem is not Object"… in AddEntriesFromIterable()
Dbuiltins_promise_handler.cpp61 …factory->GetJSError(ErrorType::TYPE_ERROR, "Resolve: The promise and resolution cannot be the same… in Resolve()
Dbuiltins_regexp.cpp1635 … factory->GetJSError(base::ErrorType::SYNTAX_ERROR, "invalid regular expression flags"); in UpdateExpressionFlags()
1642 … factory->GetJSError(base::ErrorType::SYNTAX_ERROR, "invalid regular expression flags"); in UpdateExpressionFlags()
1764 factory->GetJSError(base::ErrorType::SYNTAX_ERROR, parser.GetErrorMsg().c_str()); in RegExpInitialize()
/arkcompiler/ets_runtime/ecmascript/
Decma_macros.h300 JSHandle<JSObject> _error = _factory->GetJSError(type, message); \
321 JSHandle<JSObject> _error = _factory->GetJSError(errorType, message); \
333 JSHandle<JSObject> _error = _factory->GetJSError(errorType, message); \
Djs_thread.cpp346 …JSHandle<JSObject> error = factory->GetJSError(base::ErrorType::RANGE_ERROR, "Stack overflow!", fa… in DoStackOverflowCheck()
361 …JSHandle<JSObject> error = factory->GetJSError(base::ErrorType::RANGE_ERROR, "Stack overflow!", fa… in DoStackLimitCheck()
Djs_async_generator_object.cpp263 …factory->GetJSError(ErrorType::TYPE_ERROR, "Resolve: The promise and resolution cannot be the same… in AsyncGeneratorEnqueue()
Djs_list_format.cpp249 …JSHandle<JSObject> typeError = factory->GetJSError(ErrorType::TYPE_ERROR, "nextValue is not string… in StringListFromIterable()
Djs_proxy.cpp532 …JSHandle<JSObject> error = factory->GetJSError(base::ErrorType::RANGE_ERROR, "Stack overflow!", fa… in GetProperty()
618 …JSHandle<JSObject> error = factory->GetJSError(base::ErrorType::RANGE_ERROR, "Stack overflow!", fa… in SetProperty()
Decma_vm.cpp585 result = JSHandle<JSTaggedValue>::Cast(factory_->GetJSError( in TriggerConcurrentCallback()
Djs_function.cpp327 … factory->GetJSError(ErrorType::TYPE_ERROR, "class constructor cannot called without 'new'"); in InvokeOptimizedEntrypoint()
Dobject_factory.h203 …JSHandle<JSObject> GetJSError(const ErrorType &errorType, const char *data = nullptr, bool needChe…
Dobject_factory.cpp784 JSHandle<JSObject> ObjectFactory::GetJSError(const ErrorType &errorType, const char *data, bool nee… in GetJSError() function in panda::ecmascript::ObjectFactory
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.cpp1338 JSHandle<JSObject> error = factory->GetJSError(ErrorType::TYPE_ERROR, message.c_str()); in DEF_RUNTIME_STUBS()
1740 JSHandle<JSObject> error = factory->GetJSError(ErrorType::TYPE_ERROR, "is not callable"); in DEF_RUNTIME_STUBS()
1750 JSHandle<JSObject> error = factory->GetJSError(ErrorType::TYPE_ERROR, in DEF_RUNTIME_STUBS()
1761 JSHandle<JSObject> error = factory->GetJSError(ErrorType::TYPE_ERROR, in DEF_RUNTIME_STUBS()
1772 JSHandle<JSObject> error = factory->GetJSError(ErrorType::TYPE_ERROR, in DEF_RUNTIME_STUBS()
1786 … JSHandle<JSObject> error = factory->GetJSError(ErrorType::RANGE_ERROR, "Stack overflow!", false); in DEF_RUNTIME_STUBS()
1798 JSHandle<JSObject> error = factory->GetJSError(ErrorType::TYPE_ERROR, in DEF_RUNTIME_STUBS()
/arkcompiler/ets_runtime/ecmascript/module/
Dmodule_path_helper.cpp47 …JSTaggedValue error = factory->GetJSError(ErrorType::REFERENCE_ERROR, msg.c_str()).GetTaggedValue(… in ConcatFileNameWithMerge()
Djs_module_manager.cpp166 factory->GetJSError(base::ErrorType::SYNTAX_ERROR, errorMsg.c_str()); in GetCJSModuleValue()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_errors_test.cpp85 JSHandle<JSObject> handleObj = factory->GetJSError(ErrorType::TYPE_ERROR); in HWTEST_F_L0()
111 JSHandle<JSObject> handleObj = factory->GetJSError(ErrorType::TYPE_ERROR, "I am type error"); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dinterpreter-inl.h246 JSHandle<JSObject> error = factory->GetJSError( \
268 JSHandle<JSObject> error = factory->GetJSError( \
821 … factory->GetJSError(ErrorType::TYPE_ERROR, "class constructor cannot called without 'new'"); in GeneratorReEnterAot()
1365 … factory->GetJSError(ErrorType::TYPE_ERROR, "class constructor cannot called without 'new'"); in RunInternal()
1486 JSHandle<JSObject> error = factory->GetJSError(ErrorType::TYPE_ERROR, in RunInternal()
1531 JSHandle<JSObject> error = factory->GetJSError(ErrorType::TYPE_ERROR, in RunInternal()
Dinterpreter_assembly.cpp241 … factory->GetJSError(ErrorType::TYPE_ERROR, "class constructor cannot called without 'new'"); in Execute()