function chdir() {
	return new Error( 'invalid operation. A browser environment has no support for changing the current working directory.' );
}
Polyfill for changing the current working directory in environments having no native support for doing so.

@param {string} path - desired working directory
@returns {Error} error object

@example
var err = chdir( __dirname );
if ( err ) {
    console.error( err.message );
}