test: fix crypto-binary-default bad crypto check
authorBrendan Ashworth <brendan.ashworth@me.com>
Fri, 13 Mar 2015 08:42:21 +0000 (01:42 -0700)
committerBrendan Ashworth <brendan.ashworth@me.com>
Sun, 22 Mar 2015 00:22:27 +0000 (17:22 -0700)
commit999fbe9d96cbdff9cd69f0d23c6671dc0d7f3e9e
tree0eb3b06ca58c8eab8998f8873324293c4eeef615
parent99c79f8d41c706ddcffed7137f971a6cb62e2230
test: fix crypto-binary-default bad crypto check

This commit fixes a small bug introduced in 671fbd5
that caused the test to not be run. crypto was properly
checked, but since tls was not imported, a TypeError
would be thrown in the `try {} catch {}` block and
falsely reported as no crypto.

This is now fixed.

PR-URL: https://github.com/iojs/io.js/pull/1141
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
test/parallel/test-crypto-binary-default.js