Home
last modified time | relevance | path

Searched refs:isNativeError (Results 1 – 9 of 9) sorted by relevance

/third_party/node/test/parallel/
Dtest-util.js154 assert.strictEqual(util.types.isNativeError(new Error()), true);
155 assert.strictEqual(util.types.isNativeError(new TypeError()), true);
156 assert.strictEqual(util.types.isNativeError(new SyntaxError()), true);
157 assert.strictEqual(util.types.isNativeError(new (context('Error'))()), true);
159 util.types.isNativeError(new (context('TypeError'))()),
163 util.types.isNativeError(new (context('SyntaxError'))()),
166 assert.strictEqual(util.types.isNativeError({}), false);
168 util.types.isNativeError({ name: 'Error', message: '' }),
171 assert.strictEqual(util.types.isNativeError([]), false);
173 util.types.isNativeError(Object.create(Error.prototype)),
[all …]
Dtest-internal-util-helpers.js18 assert(!types.isNativeError(fake));
27 assert(types.isNativeError(err));
28 assert(!types.isNativeError(newErr));
34 assert(types.isNativeError(differentRealmErr));
/third_party/node/lib/internal/util/
Dcomparisons.js36 isNativeError,
232 } else if (isNativeError(val1) || val1 instanceof Error) {
235 if ((!isNativeError(val2) && !(val2 instanceof Error)) ||
286 isNativeError(val2) ||
Dinspect.js107 isNativeError,
667 assert(isNativeError(err) && err.name === 'ReferenceError' &&
1402 assert(isNativeError(err) && err.name === 'ReferenceError');
/third_party/node/lib/internal/
Dutil.js43 const { isNativeError } = internalBinding('types');
78 return isNativeError(e) || e instanceof Error;
/third_party/jsframework/runtime/main/extend/systemplugin/napi/
Dohos_util.js440 this.isNativeError = function (...args) { method
/third_party/node/doc/api/
Dutil.md1742 ### `util.types.isNativeError(value)`
1753 util.types.isNativeError(new Error()); // Returns true
1754 util.types.isNativeError(new TypeError()); // Returns true
1755 util.types.isNativeError(new RangeError()); // Returns true
2157 > Stability: 0 - Deprecated: Use [`util.types.isNativeError()`][] instead.
2529 [`util.types.isNativeError()`]: #util_util_types_isnativeerror_value
/third_party/node/doc/changelogs/
DCHANGELOG_V11.md226 …tps://github.com/nodejs/node/commit/169f3f7166)] - **util**: require `isNativeError` from internal…
DCHANGELOG_V8.md3735 …https://github.com/nodejs/node/commit/f7383eb80e)] - **test**: verify isNativeError accepts intern…