diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-17 21:19:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-17 21:54:52 +0100 |
commit | 3217e6237c4361281ab1b50eaa086f6b8eba7298 (patch) | |
tree | c987701b4e1c27ed9bf19fd534fc8f519a685e2a | |
parent | b985fa989eca6dde91ca85df0e6592fa125d076e (diff) | |
download | serenity-3217e6237c4361281ab1b50eaa086f6b8eba7298.zip |
LibJS: Add a basic test for arguments.callee
-rw-r--r-- | Userland/Libraries/LibJS/Tests/arguments-callee.js | 6 |
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); +}); |