summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/var-multiple-declarator.js
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-04-05 05:52:09 -0700
committerAndreas Kling <kling@serenityos.org>2020-04-05 15:28:45 +0200
commitbc40908d32934908ca76686c4288faec0a50c240 (patch)
tree89c03a6958f0419a009d0853a2931f8b5697f211 /Libraries/LibJS/Tests/var-multiple-declarator.js
parent4233c8662b1af9e46568dbd40c4b1a86867c9b97 (diff)
downloadserenity-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/var-multiple-declarator.js')
-rw-r--r--Libraries/LibJS/Tests/var-multiple-declarator.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/Libraries/LibJS/Tests/var-multiple-declarator.js b/Libraries/LibJS/Tests/var-multiple-declarator.js
index 79098eb68e..49c76e276b 100644
--- a/Libraries/LibJS/Tests/var-multiple-declarator.js
+++ b/Libraries/LibJS/Tests/var-multiple-declarator.js
@@ -1,5 +1,3 @@
-function assert(x) { if (!x) throw 1; }
-
try {
var a = 1, b = 2, c = a + b;
assert(a === 1);