[gjs/wip/ptomato/mozjs38: 13/32] tests: Fix double-declared variable



commit db27d997f9cafc29ebd8e831c39a1c950dc62915
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]