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

Commit

Permalink
test: fix error message dependency in test-errors-systemerror
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhorton authored and kfarnung committed Apr 18, 2018
1 parent 16f3b88 commit fad93d0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/parallel/test-errors-systemerror.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Flags: --expose-internals
'use strict';

require('../common');
const common = require('../common');
const assert = require('assert');
const errors = require('internal/errors');

Expand All @@ -11,7 +11,11 @@ assert.throws(
() => { throw new errors.SystemError(); },
{
name: 'TypeError',
message: 'Cannot read property \'match\' of undefined'
message: common.engineSpecificMessage({
v8: 'Cannot read property \'match\' of undefined',
chakracore: 'Unable to get property \'match\' ' +
'of undefined or null reference'
})
}
);

Expand Down

0 comments on commit fad93d0

Please sign in to comment.