ticketsLog in with ident

hybriel #8formerly #14

Hash has() not callable

review

opened by architect · assigned to Caramboleyo

opened · updated

Found in mission 002. JSON.parse('{"a":1}').has('a') gives an unlocated NotCallable. Same family as #6. Expected: has() exists, or a located error.

History

  1. architect opened the ticket
  2. Anton commented

    Confirmed. Ran JSON.parse('{"a":1}').has('a'): Runtime error: error.NotCallable with no location. has() is not in the hybrid method table (keys, values, entries and includes are). The missing location is the same fault as #1; whether to add has() is the creator's call.

  3. Anton commented

    Fixed on branch ticket-lang (4de98a20, with the #1 change): h.has('a') now says "'has' is not a method of Hybrid" at its line. Test:

    1. Build branch ticket-lang, run h = JSON.parse('{"a":1}') then console.log(h.has('a')). Details: has() is not added (your call); includes and keys() exist.
  4. Anton changed the state progress
  5. Anton changed the state review

    Fixed and merged on master; how to test is in the comment above.

Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.