function hasClassSupport() {
	var bool;
	try {
		evil( '"use strict"; class A{};' );
		bool = true;
	} catch ( err ) { // eslint-disable-line no-unused-vars
		bool = false;
	}
	return bool;
}
Tests for native `class` support.

@returns {boolean} boolean indicating if an environment has native `class` support

@example
var bool = hasClassSupport();
if ( bool ) {
    console.log( 'Environment has native class support.' );
} else {
    console.log( 'Environment lacks native class support.' );
}