; Properly formed but semantically invalid constructor
>> transcode/error to-binary "#[block! 1]"
** Syntax error: invalid constructor: [block! 1]
** Where: transcode
** Near: transcode/error to-binary "#[block! 1]"
; The above should return something like this instead
== [make error! [
code: 205
type: 'Syntax
id: 'malconstruct
arg1: [block! 1]
arg2: none
arg3: none
near: "(line 1) #[block! 1]"
where: [transcode]
] #{}]
; Bad syntax (note the badly formed error)
>> transcode/error to-binary "#["
** Syntax error: invalid constructor: make error! [
code: 201
type: 'Syntax
id: 'missing
arg1: "end-of-script"
arg2: "]"
arg3: none
near: "(line 1) #["
where: [transcode]
]
** Where: transcode
** Near: transcode/error to-binary "#["
; This is what should happen in the above case
== [make error! [
code: 201
type: 'Syntax
id: 'missing
arg1: "end-of-script"
arg2: "]"
arg3: none
near: "(line 1) #["
where: [transcode]
] #{}]
|