| 1 | class Update extends Native("xs_update_destructor") { |
| 2 | constructor() {throw new TypeError} |
| 3 | close() { return native("xs_update_close").call(this); } |
| 4 | complete() { return native("xs_update_complete").call(this); } |
| 5 | |
| 6 | write(buffer, byteOffset) { return native("xs_update_write").call(this, buffer, byteOffset); } |
| 7 | |
| 8 | get format() { |
| 9 | return "buffer"; |
| 10 | } |
| 11 | set format(value) { |
| 12 | if (value != "buffer") |
| 13 | throw new RangeError("invalid"); |
| 14 | } |
| 15 | |
| 16 | static { |
| 17 | this.prototype[Symbol.dispose] = this.prototype.close; |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | function open(options, prototype) { return native("xs_update_open").call(this, options, prototype); } |
| 22 |
nothing calls this directly
no outgoing calls
no test coverage detected