[gjs] tests: Fix double-declared variable
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] tests: Fix double-declared variable
- Date: Wed, 18 Jan 2017 02:54:37 +0000 (UTC)
commit 6529051c1232e10358e6634d619a19e0d7c4f755
Author: Philip Chimento <philip chimento gmail com>
Date: Tue Jan 10 23:24:13 2017 -0800
tests: Fix double-declared variable
SpiderMonkey 38 is more strict about this and will emit a warning which
causes the test to fail.
https://bugzilla.gnome.org/show_bug.cgi?id=776966
installed-tests/js/testEverythingBasic.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/installed-tests/js/testEverythingBasic.js b/installed-tests/js/testEverythingBasic.js
index 143ef08..8e6d953 100644
--- a/installed-tests/js/testEverythingBasic.js
+++ b/installed-tests/js/testEverythingBasic.js
@@ -292,7 +292,7 @@ describe('Life, the Universe and Everything', function () {
let array = Regress.test_array_fixed_size_int_out();
expect(array[0]).toEqual(0);
expect(array[4]).toEqual(4);
- let array = Regress.test_array_fixed_size_int_return();
+ array = Regress.test_array_fixed_size_int_return();
expect(array[0]).toEqual(0);
expect(array[4]).toEqual(4);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]