Fix tests on Node 0.12.

This commit is contained in:
Julien Fontanet 2015-05-26 10:41:04 +02:00
parent 00cba1988f
commit 0c4a89af9d

View File

@ -218,7 +218,7 @@ it('function constructor', function() {
'throw new Function(")");'
], [
'SyntaxError: Unexpected token )',
/^ at Object\.Function \((?:unknown source|<anonymous>)\)$/,
/^ at (?:Object\.)?Function \((?:unknown source|<anonymous>|native)\)$/,
/^ at Object\.exports\.test \(.*\/line1\.js:1001:101\)$/,
]);
});