fix: use non-symbols in isURLInstance check (#24831)

This commit is contained in:
Shelley Vohr 2020-08-05 15:05:36 -07:00 committed by GitHub
parent a2c82f2342
commit 6cb23e1d36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 0 deletions

View file

@ -174,6 +174,15 @@ describe('node feature', () => {
});
});
describe('URL handling in the renderer process', () => {
it('can successfully handle WHATWG URLs constructed by Blink', () => {
const url = new URL('file://' + path.resolve(fixtures, 'pages', 'base-page.html'));
expect(() => {
fs.createReadStream(url);
}).to.not.throw();
});
});
describe('error thrown in main process node context', () => {
it('gets emitted as a process uncaughtException event', () => {
const error = ipcRenderer.sendSync('handle-uncaught-exception', 'hello');