Closed royshouvik closed 4 years ago
The instanceof check needs to be called with Boom.Boom since Boom is not a constructor. Calling err instanceof Boom throws TypeError: Right-hand side of 'instanceof' is not callable
instanceof
Boom.Boom
Boom
err instanceof Boom
TypeError: Right-hand side of 'instanceof' is not callable
The
instanceof
check needs to be called withBoom.Boom
sinceBoom
is not a constructor. Callingerr instanceof Boom
throwsTypeError: Right-hand side of 'instanceof' is not callable