1
0
Fork 0

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
Mike Gerwitz 2014-06-03 23:47:22 -04:00
parent 887d5ef0a3
commit 2391224477
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
2 changed files with 2 additions and 2 deletions

View File

@ -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(
{

View File

@ -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(
{