ClojureScript

extend-protocol should throw error for undefined arguments

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

This should throw an error:

(extend-protocol undefined js/Text (foo [x] x))

It currently does not, which means if you forget a require or mis-type a name, you get no error until later when you protocol is not there as expected.

(extend-protocol Missspellled js/Text (foo [x] x))

Activity

Hide
Brian Taylor added a comment -

This issue should be resolved once CLJS-267 is resolved as they both come down to the same additional checks in extend-type.

Show
Brian Taylor added a comment - This issue should be resolved once CLJS-267 is resolved as they both come down to the same additional checks in extend-type.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: