Pass the code through prettier.
I don't love every part of it, but it's good enough for now.
This commit is contained in:
parent
5fd071c003
commit
e2de2282c3
@ -77,7 +77,11 @@ export function WorkerPortal(context, worker, isSlave, serialize) {
|
||||
post(1, id, 0, value);
|
||||
}
|
||||
function _reject(e) {
|
||||
post(1, id, 1, { message: e.message, name: e.name, stack: e.stack });
|
||||
post(1, id, 1, {
|
||||
message: e.message,
|
||||
name: e.name,
|
||||
stack: e.stack
|
||||
});
|
||||
}
|
||||
|
||||
// If we have received an RPC response, satisfy the promise.
|
||||
|
||||
@ -264,7 +264,15 @@ export function CreateDocument(onChange) {
|
||||
let document = new Document();
|
||||
Object.assign(
|
||||
document,
|
||||
(document.defaultView = { document, Document, Node, Text, Element, SVGElement: Element, Event })
|
||||
(document.defaultView = {
|
||||
document,
|
||||
Document,
|
||||
Node,
|
||||
Text,
|
||||
Element,
|
||||
SVGElement: Element,
|
||||
Event
|
||||
})
|
||||
);
|
||||
Object.assign(document, {
|
||||
documentElement: document,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user