Skip to content

Commit 82fcee2

Browse files
committed
chore: add TODO for mitigating misuse of the LVal constructor
1 parent 59c338d commit 82fcee2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rt/src/base/LVal.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ export class LVal implements RawValue {
2323
__troupeType : Ty.TroupeType;
2424

2525
constructor(v:any, l:Level, tlev:Level = null, posInfo:string = null) {
26+
// TODO (2025-12-05): If `v` is another `LVal` do a copy of that object or
27+
// throw an error
2628
this.val = v;
2729
this.lev = l;
2830
this.tlev = tlev == null ? l : tlev;

0 commit comments

Comments
 (0)