Bug in REPL documentation to create a button (newdefault vs newobject)?

giftculture's icon

There seems to be a bug in the max documentation for the REPL (both online and offline docs) https://docs.cycling74.com/userguide/repl/ , unless there is something wrong with my max environment (version 9.0.2)

The docs state:

"To create a new button object with a scripting name, enter <p> script newdefault button @varname ddd. Now you can send the newly created button messages such as ::ddd bang or ::ddd bgcolor 0.7 0.2 0.3 1.0"

but when I do that, it creates a jbogus object in my patcher. Instead of "newdefault", if I specify "newobject", it creates the object successfully

Wil's icon

confirmed

newdefault -> jbogus gets scripting name 'button'

newobject -> button gets scripting name 'ddd'