Replace assert
in Switch.js with custom assert
#846
Merged
assert
in Switch.js with custom assert
#846