Fix tests on Node 0.12.
This commit is contained in:
parent
00cba1988f
commit
0c4a89af9d
2
test.js
2
test.js
@ -218,7 +218,7 @@ it('function constructor', function() {
|
|||||||
'throw new Function(")");'
|
'throw new Function(")");'
|
||||||
], [
|
], [
|
||||||
'SyntaxError: Unexpected token )',
|
'SyntaxError: Unexpected token )',
|
||||||
/^ at Object\.Function \((?:unknown source|<anonymous>)\)$/,
|
/^ at (?:Object\.)?Function \((?:unknown source|<anonymous>|native)\)$/,
|
||||||
/^ at Object\.exports\.test \(.*\/line1\.js:1001:101\)$/,
|
/^ at Object\.exports\.test \(.*\/line1\.js:1001:101\)$/,
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user