[gjs/esm/static-imports: 46/52] Add test for import.meta.url, fix build error.




commit e12dcf0a8b391a58b06f5a650ba4507ff75a7bfe
Author: Evan Welsh <contact evanwelsh com>
Date:   Sat Jan 2 10:27:57 2021 -0800

    Add test for import.meta.url, fix build error.

 gjs/global.cpp                      | 1 -
 installed-tests/js/testESModules.js | 4 ++++
 2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gjs/global.cpp b/gjs/global.cpp
index 735ef8e7..212ad04b 100644
--- a/gjs/global.cpp
+++ b/gjs/global.cpp
@@ -538,6 +538,5 @@ decltype(
     GjsDebuggerGlobal::static_funcs) constexpr GjsDebuggerGlobal::static_funcs;
 
 decltype(GjsInternalGlobal::klass) constexpr GjsInternalGlobal::klass;
-decltype(GjsInternalGlobal::classops) constexpr GjsInternalGlobal::classops;
 decltype(
     GjsInternalGlobal::static_funcs) constexpr GjsInternalGlobal::static_funcs;
diff --git a/installed-tests/js/testESModules.js b/installed-tests/js/testESModules.js
index 14db12d9..744722f8 100644
--- a/installed-tests/js/testESModules.js
+++ b/installed-tests/js/testESModules.js
@@ -23,4 +23,8 @@ describe('ES module imports', function () {
     it('GObject introspection import', function () {
         expect(gi.require('GObject').toString()).toEqual('[object GIRepositoryNamespace]');
     });
+
+    it('import.meta.url', function () {
+        expect(import.meta.url).toMatch(/\/installed-tests\/js\/testESModules\.js$/);
+    });
 });


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