Fix calls to ES5-specific methods in assert library.