Skip to content

Commit 615e82b

Browse files
committed
FIX: correctly handling case where result from script evaluation is unset
related to: metaeducation/rebol-issues#2374
1 parent b18f968 commit 615e82b

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/mezz/sys-base.r

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ do*: func [
9898
]
9999
; Restore system/script and the dir
100100
all [system/script: :scr dir change-dir dir]
101-
value
101+
:value
102102
]
103103
]
104104

src/tests/units/evaluation-test.r3

+4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ Rebol [
6060
dir: what-dir
6161
--assert error? do %units/files/error.r3
6262
--assert dir = what-dir
63+
64+
--test-- "script returning UNSET value"
65+
--assert unset? do %units/files/unset.r3
66+
6367
===end-group===
6468

6569
===start-group=== "do function"

src/tests/units/files/unset.r3

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Rebol [title: "Script which returns UNSET"]
2+
print "Hello"

0 commit comments

Comments
 (0)