[gjs/esm/static-imports] Add test for import.meta.url, fix build error.
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/esm/static-imports] Add test for import.meta.url, fix build error.
- Date: Sat, 2 Jan 2021 18:28:02 +0000 (UTC)
commit 0648bad49102b69e92e33646554726df94bb11ea
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]