chore: emit the document-start and document-end events in a sandboxed renderer (#20987)

This commit is contained in:
Samuel Attard 2019-11-05 17:53:03 -08:00 committed by GitHub
parent 5b7382765c
commit d91cc257f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,6 +94,8 @@ Object.defineProperty(preloadProcess, 'noDeprecation', {
process.on('loaded', () => preloadProcess.emit('loaded'))
process.on('exit', () => preloadProcess.emit('exit'))
process.on('document-start', () => preloadProcess.emit('document-start'))
process.on('document-end', () => preloadProcess.emit('document-end'))
// This is the `require` function that will be visible to the preload script
function preloadRequire (module) {