Fix string stream crashing when created on nimscript due to last fix (#19717)
This commit is contained in:
parent
ef7d7f2459
commit
dc4cc2dca5
2 changed files with 5 additions and 1 deletions
|
|
@ -1274,7 +1274,7 @@ else: # after 1.3 or JS not defined
|
|||
|
||||
new(result)
|
||||
result.data = s
|
||||
when defined(gcOrc) or defined(gcArc):
|
||||
when declared(prepareMutation):
|
||||
prepareMutation(result.data) # Allows us to mutate using `addr` logic like `copyMem`, otherwise it errors.
|
||||
result.pos = 0
|
||||
result.closeImpl = ssClose
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue