summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorJason Beetham <beefers331@gmail.com>2022-04-14 03:30:59 -0600
committerGitHub <noreply@github.com>2022-04-14 11:30:59 +0200
commitdc4cc2dca53e3772efb3654a4ddbbe8350d1db43 (patch)
tree8943c5c8f677a2a9305182457a2baba8e0b914e9 /lib/pure
parentef7d7f24594b1ea560fbf25d3fa0d6c51122725f (diff)
downloadNim-dc4cc2dca53e3772efb3654a4ddbbe8350d1db43.tar.gz
Fix string stream crashing when created on nimscript due to last fix (#19717)
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/streams.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/streams.nim b/lib/pure/streams.nim
index 84451f989..2ac6a82f1 100644
--- a/lib/pure/streams.nim
+++ b/lib/pure/streams.nim
@@ -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