[Pkg-javascript-commits] [pdf.js] 170/414: Adjust a comment discussing transferred ArrayBuffers to refer to those buffers being detached, not neutered. This change makes the comment consistent with terminology used in the ECMAScript specification.
David Prévot
taffit at moszumanska.debian.org
Tue Jun 28 17:12:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 4691a4a1e4392d625057a9108e5a9989d6d146a1
Author: Jeff Walden <jwalden at mit.edu>
Date: Thu Jan 28 14:52:07 2016 -0800
Adjust a comment discussing transferred ArrayBuffers to refer to those buffers being detached, not neutered. This change makes the comment consistent with terminology used in the ECMAScript specification.
---
src/core/image.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/core/image.js b/src/core/image.js
index 7688ed5..6329f9d 100644
--- a/src/core/image.js
+++ b/src/core/image.js
@@ -573,10 +573,10 @@ var PDFImage = (function PDFImageClosure() {
imgArray = this.getImageBytes(originalHeight * rowBytes);
// If imgArray came from a DecodeStream, we're safe to transfer it
- // (and thus neuter it) because it will constitute the entire
- // DecodeStream's data. But if it came from a Stream, we need to
- // copy it because it'll only be a portion of the Stream's data, and
- // the rest will be read later on.
+ // (and thus detach its underlying buffer) because it will constitute
+ // the entire DecodeStream's data. But if it came from a Stream, we
+ // need to copy it because it'll only be a portion of the Stream's
+ // data, and the rest will be read later on.
if (this.image instanceof DecodeStream) {
imgData.data = imgArray;
} else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list