Searched refs:isNativeError (Results 1 – 9 of 9) sorted by relevance
/third_party/node/test/parallel/ |
D | test-util.js | 154 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 …]
|
D | test-internal-util-helpers.js | 18 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/ |
D | comparisons.js | 36 isNativeError, 232 } else if (isNativeError(val1) || val1 instanceof Error) { 235 if ((!isNativeError(val2) && !(val2 instanceof Error)) || 286 isNativeError(val2) ||
|
D | inspect.js | 107 isNativeError, 667 assert(isNativeError(err) && err.name === 'ReferenceError' && 1402 assert(isNativeError(err) && err.name === 'ReferenceError');
|
/third_party/node/lib/internal/ |
D | util.js | 43 const { isNativeError } = internalBinding('types'); 78 return isNativeError(e) || e instanceof Error;
|
/third_party/jsframework/runtime/main/extend/systemplugin/napi/ |
D | ohos_util.js | 440 this.isNativeError = function (...args) { method
|
/third_party/node/doc/api/ |
D | util.md | 1742 ### `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/ |
D | CHANGELOG_V11.md | 226 …tps://github.com/nodejs/node/commit/169f3f7166)] - **util**: require `isNativeError` from internal…
|
D | CHANGELOG_V8.md | 3735 …https://github.com/nodejs/node/commit/f7383eb80e)] - **test**: verify isNativeError accepts intern…
|