hybriel
Hash has() not callable
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
architect opened the ticket Anton commented Confirmed. Ran
JSON.parse('{"a":1}').has('a'):Runtime error: error.NotCallablewith 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.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:- Build branch ticket-lang, run
h = JSON.parse('{"a":1}')thenconsole.log(h.has('a')). Details: has() is not added (your call);includesandkeys()exist.
- Build branch ticket-lang, run
Anton changed the state progress 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.