[gjs/mozjs78: 4/21] A super quick jasmine patch.



commit 7fb1f8257c10ea31f93a91907a7066e6413de38c
Author: Evan Welsh <noreply evanwelsh com>
Date:   Sat Jul 4 21:50:20 2020 -0500

    A super quick jasmine patch.

 installed-tests/js/jasmine.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/installed-tests/js/jasmine.js b/installed-tests/js/jasmine.js
index 7cab7e00..b5739a48 100644
--- a/installed-tests/js/jasmine.js
+++ b/installed-tests/js/jasmine.js
@@ -31,7 +31,9 @@ var getJasmineRequireObj = (function (jasmineGlobal) {
     }
     jasmineRequire = exports;
   } else {
-    if (typeof window !== 'undefined' && typeof window.toString === 'function' && window.toString() === 
'[object GjsGlobal]') {
+    if (typeof globalThis !== 'undefined') {
+      jasmineGlobal = globalThis;
+    } else if (typeof window !== 'undefined' && typeof window.toString === 'function' && window.toString() 
=== '[object GjsGlobal]') {
       jasmineGlobal = window;
     }
     jasmineRequire = jasmineGlobal.jasmineRequire = jasmineGlobal.jasmineRequire || {};


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]