Skip to content

Commit 838642d

Browse files
committed
refactor: Add linebreak before the named properties object
1 parent 1165da8 commit 838642d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/constructs/interface.js

+1
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,7 @@ class Interface {
11341134
const { idl, name, namedGetter } = this;
11351135

11361136
this.str += `
1137+
11371138
const NamedPropertiesObject = new Proxy(
11381139
Object.create(
11391140
globalObject.${idl.inheritance ? idl.inheritance : "Object"}.prototype,

test/__snapshots__/test.js.snap

+2
Original file line numberDiff line numberDiff line change
@@ -7597,6 +7597,7 @@ exports.install = function install(globalObject) {
75977597
}
75987598
}
75997599
Object.defineProperties(Window.prototype, { [Symbol.toStringTag]: { value: \\"Window\\", configurable: true } });
7600+
76007601
const NamedPropertiesObject = new Proxy(
76017602
Object.create(globalObject.Object.prototype, {
76027603
[Symbol.toStringTag]: { value: \\"WindowProperties\\", configurable: true }
@@ -15371,6 +15372,7 @@ exports.install = function install(globalObject) {
1537115372
}
1537215373
}
1537315374
Object.defineProperties(Window.prototype, { [Symbol.toStringTag]: { value: \\"Window\\", configurable: true } });
15375+
1537415376
const NamedPropertiesObject = new Proxy(
1537515377
Object.create(globalObject.Object.prototype, {
1537615378
[Symbol.toStringTag]: { value: \\"WindowProperties\\", configurable: true }

0 commit comments

Comments
 (0)