[gjs: 9/9] Merge branch 'esm/static-imports' into 'master'




commit 8e97d83832ea62b3fb22a39f1e2aebb1abeef023
Merge: 06e17940 1d05293c
Author: Philip Chimento <philip chimento gmail com>
Date:   Sun Feb 7 03:58:22 2021 +0000

    Merge branch 'esm/static-imports' into 'master'
    
    ESM: Enable static imports. (Part 3)
    
    See merge request GNOME/gjs!450

 .clang-format                              |   1 +
 .reuse/dep5                                |   1 +
 doc/ESModules.md                           | 241 +++++++++++++++
 doc/Modules.md                             |  55 ++--
 gjs/atoms.h                                |   4 +
 gjs/console.cpp                            |  43 ++-
 gjs/context-private.h                      |  16 +
 gjs/context.cpp                            | 300 +++++++++++++++----
 gjs/context.h                              |  13 +
 gjs/global.cpp                             |  80 +++++
 gjs/global.h                               |  11 +
 gjs/internal.cpp                           | 461 +++++++++++++++++++++++++++++
 gjs/internal.h                             |  54 ++++
 gjs/jsapi-util.cpp                         |  18 ++
 gjs/jsapi-util.h                           |   2 +
 gjs/module.cpp                             | 215 ++++++++++++++
 gjs/module.h                               |  15 +
 installed-tests/js/.eslintrc.yml           |   8 +
 installed-tests/js/jsunit.gresources.xml   |   3 +
 installed-tests/js/meson.build             |  30 ++
 installed-tests/js/modules/data.txt        |   1 +
 installed-tests/js/modules/exports.js      |  12 +
 installed-tests/js/modules/importmeta.js   |   7 +
 installed-tests/js/testCairoModule.js      |  26 ++
 installed-tests/js/testESModules.js        |  79 +++++
 installed-tests/minijasmine-module.test.in |   7 +
 installed-tests/minijasmine.cpp            |  17 +-
 installed-tests/scripts/testCommandLine.sh |  11 +-
 js.gresource.xml                           |  10 +
 meson.build                                |   5 +-
 modules/core/overrides/GLib.js             |   2 +-
 modules/esm/.eslintrc.yml                  |   7 +
 modules/esm/cairo.js                       |  10 +
 modules/esm/gettext.js                     |  30 ++
 modules/esm/gi.js                          |  25 ++
 modules/esm/system.js                      |  26 ++
 modules/internal/.eslintrc.yml             |  27 ++
 modules/internal/internalLoader.js         | 229 ++++++++++++++
 modules/internal/loader.js                 | 170 +++++++++++
 test/gjs-tests.cpp                         | 167 +++++++++++
 test/mock-js-resources.gresource.xml       |   5 +
 test/modules/.eslintrc.yml                 |   5 +
 test/modules/default.js                    |   7 +
 test/modules/exit.js                       |   5 +
 test/modules/exit0.js                      |   5 +
 test/modules/import.js                     |   6 +
 test/modules/throws.js                     |   4 +
 47 files changed, 2393 insertions(+), 83 deletions(-)
---


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