Skip to content

Commit

Permalink
[TS] Update auto-generated TS CommonBase.mts
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Sep 4, 2022
1 parent 6fa67d9 commit 65f311d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/structs/CommonBase.mts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export class CommonBase {
// In TypeScript, protected means "any subclass can access parent fields on instances of itself"
// To work around this, we add accessors for other instances' protected fields here.
protected static add_ref_from(holder: CommonBase, referent: object) {
holder.ptrs_to.push(referent);
if (holder !== null) { holder.ptrs_to.push(referent); }
}
protected static get_ptr_of(o: CommonBase) {
return o.ptr;
Expand Down

0 comments on commit 65f311d

Please sign in to comment.