Skip to content

Commit 81a0041

Browse files
committed
fix(test): apply biome formatting to define-property.js fixture
1 parent 89f8f70 commit 81a0041

1 file changed

Lines changed: 19 additions & 15 deletions

File tree

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
11
// Targets referenced through property descriptor APIs.
2-
function f1() { return 1; }
3-
function f2() { return 2; }
2+
function f1() {
3+
return 1;
4+
}
5+
function f2() {
6+
return 2;
7+
}
48

59
// Object.defineProperty(obj, "key", { value: fn }) → obj.key() resolves to fn
610
function defProp() {
7-
const obj = {};
8-
Object.defineProperty(obj, "f", { value: f1 });
9-
obj.f();
11+
const obj = {};
12+
Object.defineProperty(obj, 'f', { value: f1 });
13+
obj.f();
1014
}
1115

1216
// Object.defineProperties(obj, { key: { value: fn } }) → obj.key() resolves to fn
1317
function defProps() {
14-
const obj = {};
15-
Object.defineProperties(obj, {
16-
"f1": { value: f1 },
17-
"f2": { value: f2 },
18-
});
19-
obj.f1();
20-
obj.f2();
18+
const obj = {};
19+
Object.defineProperties(obj, {
20+
f1: { value: f1 },
21+
f2: { value: f2 },
22+
});
23+
obj.f1();
24+
obj.f2();
2125
}
2226

2327
// Object.create({ key: fn }) → obj.key() resolves via prototype
2428
function create() {
25-
const obj = Object.create({ f1, f2 });
26-
obj.f1();
27-
obj.f2();
29+
const obj = Object.create({ f1, f2 });
30+
obj.f1();
31+
obj.f2();
2832
}

0 commit comments

Comments
 (0)