Skip to content

Trying to parse an empty string signals an implementation-internal TYPE-ERROR #90

Description

@phoe
CL-USER> (jzon:parse "")

The value
  0
is not of type
  (INTEGER 1)
from the function type declaration.
   [Condition of type TYPE-ERROR]

Restarts:
 0: [RETRY] Retry SLIME REPL evaluation request.
 1: [*ABORT] Return to SLIME's top level.
 2: [ABORT] Exit debugger, returning to top level.

Backtrace:
  0: ((LAMBDA NIL :IN JZON::%MAKE-FNS-SIMPLE-STRING))
  1: (JZON::%PARSE #<FUNCTION (LAMBDA NIL :IN JZON::%MAKE-FNS-SIMPLE-STRING) {120489076B}> #<FUNCTION (LAMBDA NIL :IN JZON::%MAKE-FNS-SIMPLE-STRING) {1204890C2B}> #<FUNCTION (LAMBDA NIL :IN JZON::%MAKE-FNS..
  2: (SB-INT:SIMPLE-EVAL-IN-LEXENV (JZON:PARSE "") #<NULL-LEXENV>)
  3: (EVAL (JZON:PARSE ""))
 --more--

Should probably be a JSON-ERROR of some sort.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions