]> git.kaiwu.me - quickjs.git/commitdiff
Unbroke tests/test_test_bjson.js
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 29 Nov 2023 07:50:53 +0000 (08:50 +0100)
committerCharlie Gordon <github@chqrlie.org>
Sun, 11 Feb 2024 17:38:47 +0000 (18:38 +0100)
tests/test_bjson.js

index faa22a6263a53e07d19a916bcb9ba157fa1bf5db..f15ef9158cba0f5fae672f79312d83558cf56202 100644 (file)
@@ -144,18 +144,6 @@ function bjson_test_reference()
     }
 }
 
-function bjson_test_regexp()
-{
-    var buf, r;
-
-    bjson_test(/xyzzy/);
-    bjson_test(/xyzzy/digu);
-
-    buf = bjson.write(/(?<𝓓𝓸𝓰>dog)/);
-    r = bjson.read(buf, 0, buf.byteLength);
-    assert("sup dog".match(r).groups["𝓓𝓸𝓰"], "dog");
-}
-
 function bjson_test_all()
 {
     var obj;
@@ -198,7 +186,6 @@ function bjson_test_all()
     }
 
     bjson_test_reference();
-    bjson_test_regexp();
 }
 
 bjson_test_all();