mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 10:07:35 +00:00
Avoid mutation
This commit is contained in:
parent
be18895ae5
commit
a982c80208
1 changed files with 5 additions and 6 deletions
|
|
@ -37,13 +37,12 @@ class Parser {
|
|||
let count = this._readUInt32LE();
|
||||
const functionNames = [];
|
||||
while (count--) {
|
||||
const func = {};
|
||||
func.classCode = this._readUInt16LE();
|
||||
const classCode = this._readUInt16LE();
|
||||
// Offset into our parsed types
|
||||
func.classType = func.classCode & 0xff;
|
||||
func.dummy2 = this._readUInt16LE();
|
||||
func.name = this._readString();
|
||||
functionNames.push(func);
|
||||
const classType = classCode & 0xff;
|
||||
const dummy2 = this._readUInt16LE();
|
||||
const name = this._readString();
|
||||
functionNames.push({ classCode, classType, dummy2, name });
|
||||
}
|
||||
return functionNames;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue