tests: Avoid redeclarations with let
Mozjs made this error fatal a while ago, so those tests were broken by gjs' JS engine updates. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/38
This commit is contained in:
@ -19,9 +19,9 @@ function test() {
|
||||
let scroll = new St.ScrollView();
|
||||
vbox.add(scroll, { expand: true });
|
||||
|
||||
let vbox = new St.BoxLayout({ vertical: true,
|
||||
style: 'padding: 10px;'
|
||||
+ 'spacing: 20px;' });
|
||||
vbox = new St.BoxLayout({ vertical: true,
|
||||
style: 'padding: 10px;'
|
||||
+ 'spacing: 20px;' });
|
||||
scroll.add_actor(vbox);
|
||||
|
||||
let tbox = null;
|
||||
|
Reference in New Issue
Block a user