We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 591a692 commit c81b086Copy full SHA for c81b086
test/parallel/test-repl-harmony.js
@@ -28,7 +28,9 @@ const args = ['-i'];
28
const child = spawn(process.execPath, args);
29
30
const input = '(function(){"use strict"; const y=1;y=2})()\n';
31
-const expectOut = /^> TypeError: Assignment to constant variable\.\n/;
+// This message will vary based on JavaScript engine, so don't check the message
32
+// contents beyond confirming that the `Error` is a `TypeError`.
33
+const expectOut = /^> TypeError: /;
34
35
child.stderr.setEncoding('utf8');
36
child.stderr.on('data', function(c) {
0 commit comments