Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit fad93d0

Browse files
jackhortonkfarnung
authored andcommitted
test: fix error message dependency in test-errors-systemerror
1 parent 16f3b88 commit fad93d0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/parallel/test-errors-systemerror.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Flags: --expose-internals
22
'use strict';
33

4-
require('../common');
4+
const common = require('../common');
55
const assert = require('assert');
66
const errors = require('internal/errors');
77

@@ -11,7 +11,11 @@ assert.throws(
1111
() => { throw new errors.SystemError(); },
1212
{
1313
name: 'TypeError',
14-
message: 'Cannot read property \'match\' of undefined'
14+
message: common.engineSpecificMessage({
15+
v8: 'Cannot read property \'match\' of undefined',
16+
chakracore: 'Unable to get property \'match\' ' +
17+
'of undefined or null reference'
18+
})
1519
}
1620
);
1721

0 commit comments

Comments
 (0)