From 4fdbb34914eec8b004343fd34f3955b45ee83bc6 Mon Sep 17 00:00:00 2001
From: Aakash Patel <aakpat6@gmail.com>
Date: Mon, 4 Dec 2017 11:28:13 -0800
Subject: [PATCH] Remove unnecessary uses of let in harness.

The use of `let` is unnecessary here, particularly in a
file that is needed to run any of the tests, even the ES5 tests.
Removing it allows older engines to run older tests.
---
 harness/assert.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/harness/assert.js b/harness/assert.js
index 384b8e8f0e..5fbc122541 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 ieval = eval;
+  var wrappedCode = 'function wrapperFn() { ' + code + ' }';
+  var ieval = eval;
 
   assert.throws(err, function() { Function(wrappedCode); }, 'Function: ' + code);
 };
-- 
GitLab