Skip to content

Commit ad1b8eb

Browse files
committed
Fix a failure to marshal strings in jit EROR primop
1 parent b5cbbf4 commit ad1b8eb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scheme-libs/racket/unison/primops.ss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -902,11 +902,13 @@
902902
(define (unison-POp-LEQT s t) (bool (chunked-string<? s t)))
903903
(define (unison-POp-EQLU x y) (bool (universal=? x y)))
904904
(define (unison-POp-EROR fnm x)
905-
(let-values ([(p g) (open-string-output-port)])
906-
(put-string p (chunked-string->string fnm))
905+
(let-values
906+
([(p g) (open-string-output-port)]
907+
[(snm) (chunked-string->string fnm)])
908+
(put-string p snm)
907909
(put-string p ": ")
908910
(display (describe-value x) p)
909-
(raise (make-exn:bug fnm x))))
911+
(raise (make-exn:bug snm x))))
910912
(define (unison-POp-FTOT f)
911913
(define base (number->string f))
912914
(define dotted

0 commit comments

Comments
 (0)