Skip to content

Instantly share code, notes, and snippets.

@alanhoff

alanhoff/bug.js

Created Jun 24, 2016
Embed
What would you like to do?
'use strict'
let express = require('express')
let app = express()
function test () {
return typeof null === 'undefined'
}
let reqs = 0
app.get('/', (req, res) => {
reqs++
if(test()) {
console.error('Bugou na request %s', reqs)
process.exit(1)
}
res.send('ok')
})
app.listen(8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.