recording racket sport - appears in autocomplete but crashes app...,

I'm using the most up-to-date I'm trying to do the following:

 session = Record.createSession({:name=>"Squash",
                                        :sport=>Record.SPORT_RACKET,
                                        :subSport=>Record.SUB_SPORT_SQUASH})

... the "Record.SPORT_RACKET" bit comes from autocomplete within VSCode - which implies that it exists in the compiler... but the compiler crashes at this line.. 

also - the SPORT_RACKET doesn't appear on the API docs ... but who knows how up to date these are (https://developer.garmin.com/connect-iq/api-docs/Toybox/ActivityRecording.html)