Skip to content

Commit feb5c0d

Browse files
committed
mozjs 140 + gjs 1.88.0
1 parent 3cb5802 commit feb5c0d

424 files changed

Lines changed: 38097 additions & 21633 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ IndentPPDirectives: AfterHash
1818
IndentWidth: 4
1919
MacroBlockBegin: "^JSNATIVE_TEST_FUNC_BEGIN$"
2020
MacroBlockEnd: "^JSNATIVE_TEST_FUNC_END$"
21+
Macros:
22+
- GJS_ALWAYS_INLINE=[[always_inline]] # COMPAT: switch in C++20
23+
- GJS_JSAPI_RETURN_CONVENTION=[[nodiscard]]
24+
- GJS_USE=[[nodiscard]]
2125
PointerAlignment: Left # Google style allows both, but clang-format doesn't
2226
SpacesBeforeTrailingComments: 2
2327
---

.clangd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
Diagnostics:
55
ClangTidy:
6-
Remove: bugprone-sizeof-expression # Interferes with g_clear_pointer()
6+
Remove: none*

.eslintignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

.eslintrc.yml

Lines changed: 0 additions & 275 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
/container-build-report.xml
66
debian/tmp
77
debian/libcjs0
8-
debian/libcjs-dbg
98
debian/libcjs-dev
109
debian/cjs
1110
debian/.debhelper
11+
debian/libcjs-dbg
1212
debian/*.substvars
13-
debian/*.debhelper.log
13+
debian/*.log
1414
debian/debhelper-build-stamp
15-
debian/files
15+
debian/files

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# SPDX-FileCopyrightText: 2024 Philip Chimento <philip.chimento@gmail.com>
33
[submodule "subprojects/gobject-introspection-tests"]
44
path = subprojects/gobject-introspection-tests
5-
url = ../gobject-introspection-tests.git
5+
url = ../../GNOME/gobject-introspection-tests.git
66
shallow = true

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ other programming languages.
264264
GJS was originally written in C, and the current state of the C++ code
265265
reflects that.
266266
Gradually, we want to move the code to a more idiomatic C++ style, using
267-
smart pointer classes such as `GjsAutoChar` to help avoid memory leaks.
267+
smart pointer classes such as `Gjs::AutoChar` to help avoid memory
268+
leaks.
268269
Even farther in the future, we expect the Rust bindings for SpiderMonkey
269270
to mature as Mozilla's Servo browser engine progresses, and we may
270271
consider rewriting part or all of GJS in Rust.

0 commit comments

Comments
 (0)