mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Use the new iterator in the PDFPageViewBuffer
unit-tests
The previous patch introduced an iterator in the `PDFPageViewBuffer`-class, hence the test-only `_buffer`-getter is no longer necessary.
This commit is contained in:
parent
e909fcdba8
commit
7d4c37e988
2 changed files with 8 additions and 19 deletions
|
@ -99,17 +99,6 @@ class PDFPageViewBuffer {
|
|||
|
||||
constructor(size) {
|
||||
this.#size = size;
|
||||
|
||||
if (
|
||||
typeof PDFJSDev === "undefined" ||
|
||||
PDFJSDev.test("!PRODUCTION || TESTING")
|
||||
) {
|
||||
Object.defineProperty(this, "_buffer", {
|
||||
get() {
|
||||
return [...this.#buf];
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
push(view) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue