Warning tests no longer fail in pre-ES5 env emulation
Strict mode fails on `typeof` for undefined variables, which was used outside of strict mode for exactly the purpose of checking for undefined variables! This check will work in either case.protolib
parent
887d5ef0a3
commit
2391224477
|
@ -19,7 +19,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
if ( typeof console === 'undefined' ) console = undefined;
|
||||
try { void console } catch ( e ) { console = undefined; }
|
||||
|
||||
require( 'common' ).testCase(
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
if ( typeof console === 'undefined' ) console = undefined;
|
||||
try { void console } catch ( e ) { console = undefined; }
|
||||
|
||||
require( 'common' ).testCase(
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue