diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-04-13 10:31:13 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-14 12:55:31 +0200 |
commit | d74ad81402c27113b2ed5586bc369703d6be61c4 (patch) | |
tree | 43aaf62b9467d55f7ad3002d049c7f050930475a /Libraries/LibJS/Tests/logical-expressions-short-circuit.js | |
parent | 9477efe97032f15438b51bf01e2958cc76c554be (diff) | |
download | serenity-d74ad81402c27113b2ed5586bc369703d6be61c4.zip |
js/LibJS: Move test functions to pure javascript.
The addition of assert functions to Userland/js
was done before we had load(..) implemented. Now
that it exists, it seems like the right move the
test helper functions to pure javascript instead
of poluting js with random global functions.
Diffstat (limited to 'Libraries/LibJS/Tests/logical-expressions-short-circuit.js')
-rw-r--r-- | Libraries/LibJS/Tests/logical-expressions-short-circuit.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibJS/Tests/logical-expressions-short-circuit.js b/Libraries/LibJS/Tests/logical-expressions-short-circuit.js index a666255ac7..77edd59b80 100644 --- a/Libraries/LibJS/Tests/logical-expressions-short-circuit.js +++ b/Libraries/LibJS/Tests/logical-expressions-short-circuit.js @@ -1,3 +1,5 @@ +load("test-common.js"); + try { let foo = 1; false && (foo = 2); |