We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40083e5 commit 3f9ac42Copy full SHA for 3f9ac42
src/mezz/mezz-secure.r
@@ -82,7 +82,9 @@ secure: function/with [
82
83
; Set each policy target separately:
84
foreach [target pol] policy [
85
- assert/type [target [word! file! url!] pol [block! word! integer!]]
+ try/except [
86
+ assert/type [target [word! file! url!] pol [block! word! integer!]]
87
+ ][ cause-error 'access 'security-error reduce [target pol] ]
88
set-policy target make-policy target pol pol-obj
89
]
90
0 commit comments