Home
last modified time | relevance | path

Searched refs:errObj (Results 1 – 24 of 24) sorted by relevance

/third_party/node/test/parallel/
Dtest-fs-fchown.js7 function testFd(input, errObj) { argument
8 assert.throws(() => fs.fchown(input), errObj);
9 assert.throws(() => fs.fchownSync(input), errObj);
12 function testUid(input, errObj) { argument
13 assert.throws(() => fs.fchown(1, input), errObj);
14 assert.throws(() => fs.fchownSync(1, input), errObj);
17 function testGid(input, errObj) { argument
18 assert.throws(() => fs.fchown(1, 1, input), errObj);
19 assert.throws(() => fs.fchownSync(1, 1, input), errObj);
23 const errObj = { variable
[all …]
Dtest-fs-fchmod.js11 const errObj = { variable
17 assert.throws(() => fs.fchmod(input), errObj);
18 assert.throws(() => fs.fchmodSync(input), errObj);
23 const errObj = { variable
26 assert.throws(() => fs.fchmod(1, input), errObj);
27 assert.throws(() => fs.fchmodSync(1, input), errObj);
35 const errObj = { variable
41 assert.throws(() => fs.fchmod(input), errObj);
42 assert.throws(() => fs.fchmodSync(input), errObj);
46 const errObj = { variable
[all …]
Dtest-dgram-sendto.js7 const errObj = { variable
13 assert.throws(() => socket.sendto(), errObj);
15 errObj.message = 'The "length" argument must be of type number. Received ' +
19 errObj);
21 errObj.message = 'The "offset" argument must be of type number. Received ' +
25 errObj);
27 errObj.message = 'The "address" argument must be of type string. Received ' +
31 errObj);
33 errObj.message = 'The "port" argument must be of type number. Received ' +
37 errObj);
Dtest-dns-setservers-type-check.js20 const errObj = { variable
29 }, errObj
34 }, errObj
39 }, errObj
44 }, errObj
60 const errObj = { variable
69 }, errObj
74 }, errObj
79 }, errObj
84 }, errObj
[all …]
Dtest-fs-symlink.js67 const errObj = { variable
72 assert.throws(() => fs.symlink(input, '', common.mustNotCall()), errObj);
73 assert.throws(() => fs.symlinkSync(input, ''), errObj);
75 assert.throws(() => fs.symlink('', input, common.mustNotCall()), errObj);
76 assert.throws(() => fs.symlinkSync('', input), errObj);
79 const errObj = { variable
85 assert.throws(() => fs.symlink('', '', '��', common.mustNotCall()), errObj);
86 assert.throws(() => fs.symlinkSync('', '', '��'), errObj);
Dtest-fs-lchmod.js41 const errObj = { variable
45 assert.rejects(promises.lchmod(f, input, () => {}), errObj);
46 assert.throws(() => fs.lchmodSync(f, input), errObj);
57 const errObj = { variable
64 assert.rejects(promises.lchmod(f, input, () => {}), errObj);
65 assert.throws(() => fs.lchmodSync(f, input), errObj);
Dtest-fs-close-errors.js11 const errObj = { variable
17 assert.throws(() => fs.close(input), errObj);
18 assert.throws(() => fs.closeSync(input), errObj);
25 const errObj = { variable
31 assert.throws(() => fs.close(fd, input), errObj);
Dtest-fs-fsync.js51 const errObj = { variable
55 assert.throws(() => fs.fdatasync(input), errObj);
56 assert.throws(() => fs.fdatasyncSync(input), errObj);
57 assert.throws(() => fs.fsync(input), errObj);
58 assert.throws(() => fs.fsyncSync(input), errObj);
Dtest-os-process-priority.js28 const errObj = { variable
35 }, errObj);
39 }, errObj);
44 const errObj = { variable
51 }, errObj);
55 }, errObj);
Dtest-crypto-sign-verify.js372 const errObj = { variable
378 assert.throws(() => crypto.createSign(input), errObj);
379 assert.throws(() => crypto.createVerify(input), errObj);
381 errObj.message = 'The "data" argument must be of type string or an ' +
384 assert.throws(() => sign.update(input), errObj);
385 assert.throws(() => verify.update(input), errObj);
386 assert.throws(() => sign._write(input, 'utf8', () => {}), errObj);
387 assert.throws(() => verify._write(input, 'utf8', () => {}), errObj);
399 const errObj = { variable
403 assert.throws(() => sign.sign(input), errObj);
[all …]
Dtest-crypto-random.js43 const errObj = { variable
49 assert.throws(() => f(value), errObj);
50 assert.throws(() => f(value, common.mustNotCall()), errObj);
54 const errObj = { variable
60 assert.throws(() => f(value), errObj);
61 assert.throws(() => f(value, common.mustNotCall()), errObj);
252 const errObj = { variable
259 assert.throws(() => crypto.randomFillSync(buf, offsetSize), errObj);
263 errObj);
265 errObj.message = 'The value of "size" is out of range. It must be >= ' +
[all …]
Dtest-timers-immediate-queue-throw.js21 const errObj = { variable
29 common.expectsError(errObj)(err);
33 d1.once('error', common.expectsError(errObj));
Dtest-crypto-certificate.js118 const errObj = { code: 'ERR_INVALID_ARG_TYPE' }; variable
119 assert.throws(() => Certificate.exportPublicKey(val), errObj);
120 assert.throws(() => Certificate.exportChallenge(val), errObj);
Dtest-fs-append-file.js125 const errObj = { variable
133 errObj
138 errObj
143 errObj
Dtest-buffer-from.js52 const errObj = { variable
59 throws(() => Buffer.from(input), errObj);
60 throws(() => Buffer.from(input, 'hex'), errObj);
Dtest-fs-chmod.js140 const errObj = { variable
147 assert.throws(() => fs.chmod(input, 1, common.mustNotCall()), errObj);
148 assert.throws(() => fs.chmodSync(input, 1), errObj);
Dtest-dns.js143 const errObj = { variable
151 }, errObj);
154 }, errObj);
157 const errObj = { variable
165 }, errObj);
Dtest-assert.js1031 const errObj = { variable
1035 assert.throws(errFn, errObj);
1037 errObj.code = 404;
1038 assert.throws(errFn, errObj);
1042 errObj.foo = undefined;
1044 () => assert.throws(errFn, errObj),
1059 errObj.code = '404';
1061 () => assert.throws(errFn, errObj),
Dtest-assert-async.js36 const errObj = { variable
44 promises.push(assert.rejects(rejectingFn, errObj));
45 promises.push(assert.rejects(rejectingFn(), errObj));
/third_party/typescript/tests/baselines/reference/
DassignmentToObjectAndFunction.js2 var errObj: Object = { toString: 0 }; // Error, incompatible toString variable
33 var errObj = { toString: 0 }; // Error, incompatible toString variable
DassignmentToObjectAndFunction.symbols2 var errObj: Object = { toString: 0 }; // Error, incompatible toString
3 >errObj : Symbol(errObj, Decl(assignmentToObjectAndFunction.ts, 0, 3))
DassignmentToObjectAndFunction.types2 var errObj: Object = { toString: 0 }; // Error, incompatible toString
3 >errObj : Object
DassignmentToObjectAndFunction.errors.txt9 var errObj: Object = { toString: 0 }; // Error, incompatible toString
/third_party/typescript/tests/cases/compiler/
DassignmentToObjectAndFunction.ts1 var errObj: Object = { toString: 0 }; // Error, incompatible toString variable