Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
48339606
Commit
48339606
authored
May 04, 2017
by
Adam Cozzette
Committed by
GitHub
May 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3043 from acozzette/javascript
Removed mention of Buffer in byteSourceToUint8Array
parents
a64497c7
f00e06c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
utils.js
js/binary/utils.js
+0
-4
No files found.
js/binary/utils.js
View file @
48339606
...
...
@@ -970,10 +970,6 @@ jspb.utils.byteSourceToUint8Array = function(data) {
return
/** @type {!Uint8Array} */
(
new
Uint8Array
(
data
));
}
if
(
data
.
constructor
===
Buffer
)
{
return
/** @type {!Uint8Array} */
(
new
Uint8Array
(
data
));
}
if
(
data
.
constructor
===
Array
)
{
data
=
/** @type {!Array.<number>} */
(
data
);
return
/** @type {!Uint8Array} */
(
new
Uint8Array
(
data
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment