Home
last modified time | relevance | path

Searched full:err (Results 1 – 25 of 572) sorted by relevance

12345678910>>...23

/arkcompiler/ets_runtime/test/sharedtest/sharedcollectionsexception/
Dsharedcollectionsexception.ts42 } catch (err) {
43 print("call boundAt fail. err: " + err + ", errCode: " + err.code);
51 } catch (err) {
52 print("Call boundConcat fail. err: " + err + ", errCode: " + err.code);
60 } catch (err) {
61 print("Call boundEntries failed. err: " + err + ", errCode: " + err.code);
69 } catch (err) {
70 print("Call boundFill failed. err: " + err + ", errCode: " + err.code);
78 } catch (err) {
79 print("Call boundFilter failed. err: " + err + ", errCode: " + err.code);
[all …]
Dexpect_output.txt15 call boundAt fail. err: BusinessError: The at method cannot be bound., errCode: 10200011
16 Call boundConcat fail. err: BusinessError: The concat method cannot be bound., errCode: 10200011
17 Call boundEntries failed. err: BusinessError: The entries method cannot be bound., errCode: 10200011
18 Call boundFill failed. err: BusinessError: The fill method cannot be bound., errCode: 10200011
19 Call boundFilter failed. err: BusinessError: The filter method cannot be bound., errCode: 10200011
20 Call boundFind failed. err: BusinessError: The find method cannot be bound., errCode: 10200011
21 Call boundFindIndex failed. err: BusinessError: The findIndex method cannot be bound., errCode: 102…
22 Call boundForEach failed. err: BusinessError: The forEach method cannot be bound., errCode: 10200011
23 Call boundIndexOf failed. err: BusinessError: The indexOf method cannot be bound., errCode: 10200011
24 Call boundJoin failed. err: BusinessError: The join method cannot be bound., errCode: 10200011
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DErrorCodeTest.ets17 let err = new Error();
18 assertEQ(err.code, 0);
20 err.code = 10 as number;
21 assertEQ(err.code, 10);
29 } catch (err: Error) {
30 assertEQ(err.code, 0);
31 assertEQ(err.message, '');
32 assertTrue(err.cause === undefined);
37 } catch (err: Error) {
38 assertEQ(err.code, 0);
[all …]
/arkcompiler/ets_runtime/test/sharedtest/sendable/
Dsendable.ts30 } catch (err) {
31 print('sendable inherit from sendable failed. err: ' + err + ', code: ' + err.code);
44 } catch (err) {
45 print('sendable inherit from non-sendable failed. err: ' + err + ', code: ' + err.code);
62 } catch (err) {
63 print('sendable change proto failed. err: ' + err + ', code: ' + err.code);
77 } catch (err) {
78 print('non-sendable inherit from non-sendable failed. err: ' + err + ', code: ' + err.code);
92 } catch (err) {
93 print('non-sendable inherit from sendable failed. err: ' + err + ', code: ' + err.code);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/core/
DIntl.cpp41 ani_status err = RegisterIntlNumberFormatNativeMethods(env); in InitCoreIntl() local
42 err = err == ANI_OK ? RegisterIntlLocaleMatch(env) : err; in InitCoreIntl()
43 err = err == ANI_OK ? RegisterIntlCollator(env) : err; in InitCoreIntl()
44 err = err == ANI_OK ? RegisterIntlLocaleNativeMethods(env) : err; in InitCoreIntl()
45 err = err == ANI_OK ? RegisterIntlPluralRules(env) : err; in InitCoreIntl()
46 err = err == ANI_OK ? RegisterIntlDateTimeFormatMethods(env) : err; in InitCoreIntl()
47 err = err == ANI_OK ? RegisterIntlRelativeTimeFormatMethods(env) : err; in InitCoreIntl()
48 err = err == ANI_OK ? RegisterIntlSegmenter(env) : err; in InitCoreIntl()
49 err = err == ANI_OK ? RegisterIntlListFormat(env) : err; in InitCoreIntl()
50 err = err == ANI_OK ? RegisterIntlDisplayNames(env) : err; in InitCoreIntl()
[all …]
/arkcompiler/ets_runtime/test/sharedtest/check/
Dexpect_output.txt22 Fail to update propNumber to null with stobjbyname. err: TypeError: Cannot set sendable property wi…
23 Fail to update propBool to null with stobjbyname. err: TypeError: Cannot set sendable property with…
24 Fail to update propBigInt1 to null with stobjbyname. err: TypeError: Cannot set sendable property w…
25 Fail to update propBigInt2 to null with stobjbyname. err: TypeError: Cannot set sendable property w…
45 Fail to update subClassPropString with stobjbyname. err: TypeError: Cannot set sendable property wi…
47 Fail to replace accessor. err: TypeError: Cannot define property
49 Fail to set prop through accessor with mismatched type. err: TypeError: Cannot set sendable propert…
51 Fail to replace instance's func. err: TypeError: Cannot assign to read only property
53 Fail to update prototype. err: TypeError: Cannot add property in prevent extensions
54 Fail to extend prop to constructor's prototype. err: TypeError: Cannot add property in prevent exte…
[all …]
Dsharedcheck.ts149 print("Fail to delete propNumber. err: " + error)
159 print("Fail to extend prop with defineProperty. err: " + error);
166 print("Fail to extend prop1 with defineProperty. err: " + error)
173 print("Fail to extend prop2 with defineProperties. err: " + error)
180 print("Fail to extend prop3 with stobjbyname. err: " + error)
190 print("Fail to replace instance's func. err: " + error);
200 print("Fail to update prototype. err: " + error)
207 print("Fail to extend prop to constructor's prototype. err: " + error);
215 print("Fail to change constructor of instance's prototype. err: " + error);
222 print("Fail to replace instance's prototype. err: " + error);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/08.statements/14.throw_statements/
Dthrow.params.yaml17 class Err extends Error {}
19 let p: Object = new Err();
23 assertTrue( e instanceof Err )
30 class Err extends Error implements Ie {}
32 let p: Ie = new Err();
42 class Err extends Error {}
45 if (t1 != t2) throw new Err();
47 assertTrue( e instanceof Err )
53 class Err extends Error {}
58 if (t1 != t2) throw new Err();
[all …]
/arkcompiler/runtime_core/taihe/test/ani_graphics3d/user/
Dmain.ets27 let err: BusinessError = new BusinessError();
31 err = e as BusinessError;
41 let err: BusinessError = new BusinessError();
45 err = e as BusinessError;
55 sResFactory.createCamera(param, (err: BusinessError, data: SceneTest.Camera) => {
56 if (err.code !== 0) {
57 reject(err);
65 let err: BusinessError = new BusinessError();
69 err = e as BusinessError;
80 let err: BusinessError = new BusinessError();
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/error/BuiltinError/ts_to_ets/
Dtest_builtinerror.ets38 } catch (err) {
39 res = ((err).toString() === ranErr.toString()) &&
40 (err).toString() === ranErr.toString() &&
41 (err as RangeError).message == ranErr.message &&
42 (err instanceof RangeError);
53 } catch (err) {
54 res = ((err).toString() === ranErr.toString()) &&
55 (err).toString() === ranErr.toString() &&
56 (err as ReferenceError).message == ranErr.message &&
57 (err instanceof ReferenceError);
[all …]
/arkcompiler/runtime_core/taihe/test/ani_async/user/
Dmain.ets23 let err: BusinessError = new BusinessError();
27 err = e as BusinessError;
33 let err: BusinessError = new BusinessError();
37 err = e as BusinessError;
39 assertEQ(err.code, 1, "addSync should throw an error");
41 err.message, "some error happen in add impl",
50 async_test.add(10, 20, (err: BusinessError, data: int) => {
51 if (err.code !== 0) {
52 reject(err);
59 let err: BusinessError = new BusinessError();
[all …]
/arkcompiler/ets_runtime/test/sharedtest/sharedarray/
Dsharedarray.ts226 } catch (err) {
227 print("add element by index access failed. err: " + err + ", code: " + err.code);
232 } catch (err) {
233 print("add element by index access failed. err: " + err + ", code: " + err.code);
238 } catch (err) {
239 print("add element by index access failed. err: " + err + ", code: " + err.code);
257 } catch (err) {
258 print("add element by index access failed. err: " + err + ", code: " + err.code);
273 } catch (err) {
274 print("Create from empty element list failed. err: " + err + ", code: " + err.code);
[all …]
/arkcompiler/runtime_core/libziparchive/
Dzip_archive.cpp55 int err = unzClose(handle); in CloseArchive() local
56 if (err != UNZ_OK) { in CloseArchive()
57 LOG(ERROR, ZIPARCHIVE) << "unzClose with error: " << err; in CloseArchive()
69 int err = unzCloseFile(handle); in CloseArchiveFile() local
70 if (err != UNZ_OK) { in CloseArchiveFile()
71 LOG(ERROR, ZIPARCHIVE) << "unzCloseFile with error: " << err; in CloseArchiveFile()
79 int err = unzGetGlobalInfo(handle, &gstat->ginfo); in GetGlobalFileInfo() local
80 if (err != UNZ_OK) { in GetGlobalFileInfo()
81 LOG(ERROR, ZIPARCHIVE) << "GetGlobalFileInfo with error: " << err; in GetGlobalFileInfo()
89 int err = unzGoToNextFile(handle); in GoToNextFile() local
[all …]
/arkcompiler/runtime_core/static_core/libziparchive/
Dzip_archive.cpp58 int err = unzClose(handle); in CloseArchive() local
59 if (err != UNZ_OK) { in CloseArchive()
60 LOG(ERROR, ZIPARCHIVE) << "unzClose with error: " << err; in CloseArchive()
72 int err = unzCloseFile(handle); in CloseArchiveFile() local
73 if (err != UNZ_OK) { in CloseArchiveFile()
74 LOG(ERROR, ZIPARCHIVE) << "unzCloseFile with error: " << err; in CloseArchiveFile()
82 int err = unzGetGlobalInfo(handle, &gstat->ginfo); in GetGlobalFileInfo() local
83 if (err != UNZ_OK) { in GetGlobalFileInfo()
84 LOG(ERROR, ZIPARCHIVE) << "GetGlobalFileInfo with error: " << err; in GetGlobalFileInfo()
92 int err = unzGoToNextFile(handle); in GoToNextFile() local
[all …]
/arkcompiler/ets_frontend/test262/
Dmodule_tests.txt15 parse-err-export-dflt-const.js
16 parse-err-export-dflt-let.js
17 parse-err-export-dflt-var.js
18 parse-err-return.js
19 parse-err-yield.js
56 eval-export-dflt-expr-err-eval.js
57 eval-export-dflt-expr-err-get-value.js
81 eval-rqstd-abrupt-err-type_FIXTURE.js
82 eval-rqstd-abrupt-err-uri_FIXTURE.js
136 instn-iee-err-ambiguous-1_FIXTURE.js
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/xgc/
Dmark_deep_js2sts_test.cpp49 std::stringstream err; in GCStarted() local
50 err << "Expected 1 xref, but got " << xrefStorage->Size(); in GCStarted()
51 errorMessages_.push_back(err.str()); in GCStarted()
61 std::stringstream err; in GCStarted() local
62 err << "STS proxy object not found"; in GCStarted()
63 errorMessages_.push_back(err.str()); in GCStarted()
68 std::stringstream err; in GCStarted() local
69 err << "Expected 1 field, but got " << fields.size(); in GCStarted()
70 errorMessages_.push_back(err.str()); in GCStarted()
74 std::stringstream err; in GCStarted() local
[all …]
Dmark_cycle2_test.cpp48 std::stringstream err; in GCStarted() local
49 err << "Expected GC cause CROSSREF_CAUSE, but got " << task.reason; in GCStarted()
50 errorMessages_.push_back(err.str()); in GCStarted()
56 std::stringstream err; in GCStarted() local
57 err << "Expected xrefs count 2, but got " << xrefStorage->Size(); in GCStarted()
58 errorMessages_.push_back(err.str()); in GCStarted()
64 std::stringstream err; in GCStarted() local
65 err << "Found object " << obj << " in ShredReferenceStorage without interop index"; in GCStarted()
66 errorMessages_.push_back(err.str()); in GCStarted()
78 std::stringstream err; in GCStarted() local
[all …]
Dmark_cycle_test.cpp42 std::stringstream err; in GetErrors() local
43 err << "MarkFromObject was not called"; in GetErrors()
44 errors.insert(errors.begin(), err.str()); in GetErrors()
71 std::stringstream err; in MarkFromObject() local
72err << "MarkFromObject called with " << obj << ", but expected " << values_->expectedJsObject; in MarkFromObject()
73 values_->errors.push_back(err.str()); in MarkFromObject()
88 std::stringstream err; in GCStarted() local
89 err << "Expected GC cause CROSSREF_CAUSE, but got " << task.reason; in GCStarted()
90 errorMessages_.push_back(err.str()); in GCStarted()
96 std::stringstream err; in GCStarted() local
[all …]
Dmark_sts2js_test.cpp36 std::stringstream err; in GetErrors() local
37 err << "MarkFromObject was not called"; in GetErrors()
38 errors.insert(errors.begin(), err.str()); in GetErrors()
59 std::stringstream err; in MarkFromObject() local
60err << "MarkFromObject called with " << obj << ", but expected " << values_->expectedJsObject; in MarkFromObject()
61 values_->errors.push_back(err.str()); in MarkFromObject()
75 std::stringstream err; in GCStarted() local
76 err << "Expected GC cause CROSSREF_CAUSE, but got " << task.reason; in GCStarted()
77 errorMessages_.push_back(err.str()); in GCStarted()
83 std::stringstream err; in GCStarted() local
[all …]
Dmark_js2sts_test.cpp44 std::stringstream err; in GCStarted() local
45 err << "Expected GC cause CROSSREF_CAUSE, but got " << task.reason; in GCStarted()
46 errorMessages_.push_back(err.str()); in GCStarted()
52 std::stringstream err; in GCStarted() local
53 err << "Expected 3 xrefs, but got " << xrefStorage->Size(); in GCStarted()
54 errorMessages_.push_back(err.str()); in GCStarted()
62 std::stringstream err; in GCStarted() local
63 err << "Found object " << obj << " in ShredReferenceStorage without interop index"; in GCStarted()
64 errorMessages_.push_back(err.str()); in GCStarted()
72 std::stringstream err; in GCStarted() local
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/tests/
Djs_stackinfo_test2.cpp86 int err = E_OK; in next_ark_frame() local
101 if (err == E_OK) { in next_ark_frame()
103 err = ctx->read_mem(ctx, next_fp_addr, &fp, sizeof(uintptr_t)); in next_ark_frame()
105 if (err == E_OK && next_pc_addr != 0UL) { in next_ark_frame()
106 err = ctx->read_mem(ctx, next_pc_addr, &pc, sizeof(uintptr_t)); in next_ark_frame()
107 *ret_frame_avail = (err == E_OK); in next_ark_frame()
113 return err; in next_ark_frame()
119 int err = E_OK; in next_ark_frame() local
121 while (err == E_OK) { in next_ark_frame()
124 err = ctx->read_mem(ctx, type_addr, &frame_type, sizeof(uintptr_t)); in next_ark_frame()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/
DLRUCacheExceptionTest.ets43 } catch (err: BusinessError) {
44 assertEQ(err.code, 401, "LRUCache should throw an exception when capacity is not int")
54 } catch (err: BusinessError) {
55 assertEQ(err.code, 401, "LRUCache should throw an exception when capacity is not int")
65 } catch (err: BusinessError) {
66 assertEQ(err.code, 401, "LRUCache should throw an exception when capacity is not int")
76 } catch (err: BusinessError) {
77 assertEQ(err.code, 401, "LRUCache should throw an exception when capacity is negative")
86 } catch (err: BusinessError) {
87 assertEQ(err.code, 401, "LRUCache should throw an exception when capacity is not int")
[all …]
/arkcompiler/runtime_core/taihe/test/ani_array/user/
Dmain.ets286 let err: BusinessError = new BusinessError();
290 err = e as BusinessError;
299 arrI8.fetchData((err: BusinessError, data: byte[]) => {
300 if (err.code !== 0) {
301 reject(err);
308 let err: BusinessError = new BusinessError();
313 err = e as BusinessError;
320 let err: BusinessError = new BusinessError();
324 err = e as BusinessError;
331 let err: BusinessError = new BusinessError();
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/xml/
DXmlPullParserTest10.ets63 } catch (err) {
64 console.error(`${TAG} failed, error: ${err}`);
88 } catch (err: BusinessError) {
89 console.error(`${TAG} failed, error: ${err}`);
90 assertEQ((err as BusinessError).code, 401);
91 } catch (err) {
92 console.error(`${TAG} failed, error: ${err}`);
122 } catch (err: BusinessError) {
123 console.error(`${TAG} failed, error: ${err}`);
124 assertEQ((err as BusinessError).code, 401);
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/assembler/
Doperand.h136 ERR = 0xFFFF enumerator
144 {{ERR, AL, CL, DL, BL, SPL, BPL, SIL, DIL, R8B, R9B, R10B, R11B, R12B, R13B, R14B, R15B},
145 {ERR, AH, CH, DH, BH},
146 {ERR, AX, CX, DX, BX, SP, BP, SI, DI, R8W, R9W, R10W, R11W, R12W, R13W, R14W, R15W},
147 … {ERR, EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI, R8D, R9D, R10D, R11D, R12D, R13D, R14D, R15D, ERR,
149 …{ERR, RAX, RCX, RDX, RBX, RSP, RBP, RSI, RDI, R8, R9, R10, R11, R12, R13, R14,…
151 {ERR, ERR, ERR, ERR, ERR, ERR, ERR, ERR, ERR, ERR, ERR, ERR, ERR, ERR, ERR, ERR, ERR, ERR,
174 {GS, "gs"}, {ERR, "err"}};
187 Reg base = ERR;
188 Reg index = ERR;
[all …]

12345678910>>...23