summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-17 21:19:07 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-17 21:54:52 +0100
commit3217e6237c4361281ab1b50eaa086f6b8eba7298 (patch)
treec987701b4e1c27ed9bf19fd534fc8f519a685e2a
parentb985fa989eca6dde91ca85df0e6592fa125d076e (diff)
downloadserenity-3217e6237c4361281ab1b50eaa086f6b8eba7298.zip
LibJS: Add a basic test for arguments.callee
-rw-r--r--Userland/Libraries/LibJS/Tests/arguments-callee.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Tests/arguments-callee.js b/Userland/Libraries/LibJS/Tests/arguments-callee.js
new file mode 100644
index 0000000000..986c63fcc2
--- /dev/null
+++ b/Userland/Libraries/LibJS/Tests/arguments-callee.js
@@ -0,0 +1,6 @@
+test("basic arguments.callee", () => {
+ var foo = function () {
+ return arguments.callee;
+ };
+ expect(foo()).toBe(foo);
+});