console: only require assert module once in Console.prototype.assert
Checklist
-
tests and code linting passes -
the commit message follows commit guidelines
Description of change
Only require
the assert
module once at the head of the file, to reduce the multiple require
spending.