summaryrefslogtreecommitdiff
path: root/harness/assert.js
diff options
context:
space:
mode:
Diffstat (limited to 'harness/assert.js')
-rw-r--r--harness/assert.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/harness/assert.js b/harness/assert.js
index 0898bfd90..384b8e8f0 100644
--- a/harness/assert.js
+++ b/harness/assert.js
@@ -88,8 +88,8 @@ assert.throws = function (expectedErrorConstructor, func, message) {
};
assert.throws.early = function(err, code) {
- let wrappedCode = `function wrapperFn() { ${code} }`;
+ let wrappedCode = 'function wrapperFn() { ' + code + ' }';
let ieval = eval;
- assert.throws(err, function() { Function(wrappedCode); }, `Function: ${code}`);
+ assert.throws(err, function() { Function(wrappedCode); }, 'Function: ' + code);
};