Skip to content

Commit

Permalink
Merge pull request #201 from swsnr/196-add-glib-error-stack
Browse files Browse the repository at this point in the history
Add GLib.Error.stack property
  • Loading branch information
JumpLink authored Sep 20, 2024
2 parents 0655156 + 20ccdf6 commit f483b4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/lib/src/injections/glib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
} from "../gir.js";
import { GirDirection } from "@gi.ts/parser";
import { IntrospectedRecord } from "../gir/class.js";
import { JSField } from "../gir/property.js";

export default {
namespace: "GLib",
Expand Down Expand Up @@ -96,6 +97,13 @@ export default {

Error.constructors = Error.constructors.map(c => fixQuark(c));
Error.members = Error.members.map(m => fixQuark(m));
Error.fields.push(
new JSField({
name: "stack",
parent: Error,
type: StringType
})
);
}

{
Expand Down

0 comments on commit f483b4d

Please sign in to comment.