Skip to content

Commit 04beb27

Browse files
committed
Chang styles
1 parent 2c0f9d2 commit 04beb27

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

tests/jerry/private_fields.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -329,20 +329,24 @@ var16.b();
329329
assert(var16.c() == 12);
330330

331331
// Private fields are accessible in Array object
332-
class C3 extends Array{
333-
#a=1;
334-
b(){
332+
class P extends Array {
333+
#a = 1;
334+
b() {
335335
return this.#a;
336-
}
336+
}
337337
}
338-
var var17 = new C3();
339-
assert(var17.b()==1);
340338

341-
class C4 extends Array{
342-
#a(){return 1};
343-
b(){
339+
var var17 = new P();
340+
assert(var17.b() == 1);
341+
342+
class Q extends Array {
343+
#a() {
344+
return 1;
345+
}
346+
b() {
344347
return this.#a();
345-
}
348+
}
346349
}
347-
var var18 = new C4();
348-
assert(var18.b()==1);
350+
351+
var var18 = new Q();
352+
assert(var18.b() == 1);

0 commit comments

Comments
 (0)