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
var newrelic = require('newrelic') | |
var http = require('http') | |
function handleRequest(req, res) { | |
console.log('Handling request') | |
// Swallows the exception on the next line. | |
// Should throw a runtime error instead since DiesHere is undefined. | |
var x = DiesHere | |
res.end() | |
} |
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
(function() { | |
function hOPExtend(obj) { | |
var args = Array.prototype.slice.call(arguments, 1) | |
for (var i = 0; i < args.length; i++) { | |
source = args[i] | |
for (var prop in source) if (source.hasOwnProperty(prop)) { | |
obj[prop] = source[prop]; | |
} | |
} |
NewerOlder