Skip to content

Commit

Permalink
Add GLib.Error.stack property
Browse files Browse the repository at this point in the history
Fixes #196
  • Loading branch information
swsnr committed Sep 5, 2024
1 parent f0f46a3 commit 20ccdf6
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 20ccdf6

Please sign in to comment.