rquickjs-sys 0.15.0

QuickJS bindings for rquickjs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const it = new class extends Iterator {
    constructor() {
        super()
        this.i = 0
    }
    next() {
        if (++this.i === 1) {
            return {done: false, get value() { throw "fail" }}
        } else {
            return {done:true}
        }
    }
}
it.drop(1).next().value // should not throw