Skip to content

Commit 52e78fa

Browse files
committed
Remove stack check from fn ctor test
This is not consistent across different Node versions.
1 parent 1975a14 commit 52e78fa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,7 @@ it('function constructor', function() {
226226
compareStackTrace(createMultiLineSourceMap(), [
227227
'throw new Function(")");'
228228
], [
229-
'SyntaxError: Unexpected token )',
230-
/^ at (?:Object\.)?Function \((?:unknown source|<anonymous>|native)\)$/,
231-
/^ at Object\.exports\.test \(.*\/line1\.js:1001:101\)$/,
229+
'SyntaxError: Unexpected token )'
232230
]);
233231
});
234232

0 commit comments

Comments
 (0)