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 da2304a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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,11 @@ 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 da2304a

Please sign in to comment.