diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-04-05 05:52:09 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-05 15:28:45 +0200 |
commit | bc40908d32934908ca76686c4288faec0a50c240 (patch) | |
tree | 89c03a6958f0419a009d0853a2931f8b5697f211 /Libraries/LibJS/Tests/function-length.js | |
parent | 4233c8662b1af9e46568dbd40c4b1a86867c9b97 (diff) | |
download | serenity-bc40908d32934908ca76686c4288faec0a50c240.zip |
LibJS: Use the native assert() implementation now avaiable in 'js -t'
Switch the LibJS test suite to use the native assert implementation
surfaced inside the js repl when it's launched in test mode.
Diffstat (limited to 'Libraries/LibJS/Tests/function-length.js')
-rw-r--r-- | Libraries/LibJS/Tests/function-length.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Libraries/LibJS/Tests/function-length.js b/Libraries/LibJS/Tests/function-length.js index e24f08e490..7a3e69cc32 100644 --- a/Libraries/LibJS/Tests/function-length.js +++ b/Libraries/LibJS/Tests/function-length.js @@ -1,5 +1,3 @@ -function assert(x) { if (!x) throw 1; } - try { function foo() { } assert(foo.length === 0); |