libquickjs-ng-sys 0.13.0

QuickJS-NG Javascript Engine FFI bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
import { assert } from "./assert.js";

function check(unit, halfCount) {
    const rope = unit.repeat(halfCount) + unit.repeat(halfCount);
    const flat = unit.repeat(halfCount * 2);
    assert(rope.length, flat.length);
    assert(RegExp.escape(rope), RegExp.escape(flat));
}

check("a", 50000);
check("a.b-c|d", 4000);
check("€☃", 4000);