- Apr 28, 2024
-
-
Philip Chimento authored
Meson build file improvements See merge request !931
-
Philip Chimento authored
Some build fixes for the master (and gnome-46) branches for Visual Studio See merge request !932
-
- Apr 25, 2024
-
-
Chun-wei Fan authored
Things fit fine under a unsigned (int), so use that to avoid additional casting.
-
Chun-wei Fan authored
C++-17 does not allow designated initializers but is allowed under C++-20, so use accessors to do the same thing
-
- Apr 21, 2024
-
-
Philip Chimento authored
This allows getting rid of some deprecated usages and taking advantage of some minor new features.
-
Philip Chimento authored
-
Philip Chimento authored
We handle a bunch of edge cases in the symlink-gjs.py script, but Meson already handles them.
-
Philip Chimento authored
Since 0.57 Meson has the ability to skip an install script if DESTDIR is set. Since that was the only functionality of the wrapper script around glib-compile-schemas, we can eliminate the wrapper script and run the command directly.
-
Philip Chimento authored
Don't prepend the prefix where it isn't needed; store all the paths in variables at the top, instead of throughout the build files; output libexecdir in the summary.
-
Philip Chimento authored
-
Philip Chimento authored
Symbols starting with _ are reserved for the compiler. Also don't couple this with _GI_EXTERN, as that variable actually belongs to an external dependency.
-
Philip Chimento authored
This gets messed up if it is included before another file that includes config.h.
-
- Apr 20, 2024
-
-
Philip Chimento authored
March maintenance See merge request !929
-
- Apr 16, 2024
-
-
Philip Chimento authored
Docs: Various markdown fixes See merge request !930
-
FeRD (Frank Dana) authored
The `## Some heading ##` form of heading, while valid, was only used on _some_ headings in _some_ files. Standardize to `## Some heading`.
-
FeRD (Frank Dana) authored
-
FeRD (Frank Dana) authored
- Identifier has to be followed by a colon (`[1]: https://...` not `[1] https://...`) - Title, when provided, must be enclosed in double-quotes
-
- Apr 10, 2024
-
-
Philip Chimento authored
Now that we have TextEncoder and TextDecoder, not only the old ByteArray object is legacy, but also the whole ByteArray module is legacy. So move its tests into testLegacyByteArray and delete the testByteArray file.
-
Philip Chimento authored
These can all be replaced by TextEncoder/TextDecoder. In the case of ByteArray.fromGBytes(), call .toArray() instead on the GBytes instance.
-
Philip Chimento authored
This is now just testing assignment to a Uint8Array, not a special ByteArray object that is backed by a GByteArray. There's no need to test this, since it's just part of JS.
-
Philip Chimento authored
I had previously thought that this was sufficient on macOS; if a library isn't found in the default path, we fall back to the build directory. However, this causes hard-to-track-down errors when running tests while there is also an earlier version of GJS installed to the default library path. So, better to just have the same behaviour as on other Unix.
-
Philip Chimento authored
We don't want the IWYU job running on previous stable branches. The stable branches were selected with a regex that was written in the 'gnome-3-38' days, so doesn't match the names of more recent stable branches, like gnome-46. Fix the regex so it matches both.
-
Philip Chimento authored
g_type_interfaces() on an interface GType is always going to return an empty list. Interfaces can have prerequisite interfaces (fetched by g_type_interface_prerequisites()) but we should not enumerate their properties in this function.
-
Philip Chimento authored
In all these places, we are creating a JSObject and almost immediately storing it in a MutableHandleValue. If there's no operation that can potentially GC in between creation and storage, then there's no need to root the object.
-
Philip Chimento authored
Use the new evalInFrame() function to improve the keys command to handle exceptions raised while printing the expression's keys. Print the result directly, rather than calling into the debuggee to print it. Also handle the cases gracefully where the argument isn't an object, or doesn't have any own properties. Change 'keys' to 'own properties' in the description, in case the user is looking up help for the keys command because they don't know what keys are...
-
Philip Chimento authored
Usually if we are evaluating an expression inline for it to be used in a command, we don't want an exception occurring from the evaluation to interfere with the control flow of the program. We just want to print and swallow the exception. This adds a new function evalInFrame() which evaluates the given expression inside the current frame, with debugger bindings. Refactor throwOrReturn() to use this function. Aside from dealing nicely with exceptions, this adds the feature of being able to use debugger bindings with the return and throw commands, like 'return $3'. Add tests for these new features.
-
Philip Chimento authored
To use the throw or return commands, you have to be in the newest frame. The error message would previously reference throwing, even when using the return command. Fix the message and add tests.
-
Philip Chimento authored
The throw command should test throwing an expression, not a statement.
-
Philip Chimento authored
Consecutive conditions that check for JS errors can be collapsed.
-
Philip Chimento authored
Updates to the latest versions. eslint-plugin-jsdoc dropped the newline-after-description rule in favour of the more comprehensive tag-lines rule.
-
Philip Chimento authored
We never used GjsMaybeOwned<JS::Value> anymore, except in tests. There's only GjsMaybeOwned<JSObject*>, so we don't have to have the extra complication of a template parameter. Oddly, there are some consts and constexprs that have to be removed even though GCC accepted them when it was a template.
-
Philip Chimento authored
Surprisingly, depending on what types g(u)int64 and (u)int64_t are aliased to, it may not work interchangeably. Since we are using the stdint.h types we need to use the inttypes.h macros, as well.
-
- Apr 01, 2024
-
-
Philip Chimento authored
doc: Document how to get a stack trace See merge request !864
-
-
Philip Chimento authored
repo: Handle GioUnix/GioWin32 types being returned from Gio methods Closes #610 See merge request !928
-
Philip Chimento authored
Add a CI check for config.h, and some other useful checks Closes #447 See merge request !926
-
- Mar 30, 2024
-
-
Philip Chimento authored
GBytes to be accepted by TextDecoder See merge request !903
-
-
- Mar 26, 2024
-
-
Philip Chimento authored
It may happen that a Gio method (such as Gio.Subprocess.get_stdout_pipe()) returns an object from GioUnix. We need to handle that case in four places: gjs_lookup_object_prototype(), gjs_lookup_object_constructor(), gjs_lookup_interface_constructor(), and gjs_value_from_g_value_internal(). Introduce a new method gjs_lookup_gtype() that calls g_irepository_find_by_gtype() and then performs the necessary adjustments afterwards. Closes: #610
-