fix: use non-symbols in isURLInstance check (#24831)
This commit is contained in:
parent
a2c82f2342
commit
6cb23e1d36
3 changed files with 40 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue