Created
January 22, 2018 21:08
-
-
Save wtfaremyinitials/bab760d6b42e95cf0d12114c13e158e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let asyncawait = true; | |
try { | |
new Function('async function test(){await 1}'); | |
} catch (error) { | |
asyncawait = false; | |
} | |
if (asyncawait) | |
module.exports = require('./lib/Puppeteer'); | |
else | |
module.exports = require('./node6/lib/Puppeteer'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment