1
0
Fork 0
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:
Jonas Jenwald 2021-11-15 13:26:50 +01:00
parent e909fcdba8
commit 7d4c37e988
2 changed files with 8 additions and 19 deletions

View file

@ -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) {