Code review:
- add missing const and corresponding error string
- remove defunct const and its error string; remove stray log()
- fix typo in assert
- remove unneeded var that duplicates closure
- fix how Node-side return vals are documented to match Inspector.json better