summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Tests/test-common.js
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Tests/test-common.js')
-rw-r--r--Userland/Libraries/LibJS/Tests/test-common.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Tests/test-common.js b/Userland/Libraries/LibJS/Tests/test-common.js
index 911d194dd9..3c0eec4f11 100644
--- a/Userland/Libraries/LibJS/Tests/test-common.js
+++ b/Userland/Libraries/LibJS/Tests/test-common.js
@@ -354,7 +354,7 @@ class ExpectationError extends Error {
let result;
try {
- result = new Function(this.target)();
+ result = eval(this.target);
} catch (e) {
throw new ExpectationError();
}