mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 01:29:22 +00:00
Allow parser.js to run in the browserFor some reason object destructuing makes someone assume we should be using es6 exports
This commit is contained in:
parent
0be6a8e092
commit
417e22f28e
1 changed files with 4 additions and 5 deletions
|
|
@ -332,11 +332,10 @@ function parse(buffer) {
|
|||
});
|
||||
|
||||
const resolvedBindings = bindings.map(binding => {
|
||||
const { binaryOffset, ...rest } = binding;
|
||||
return {
|
||||
commandOffset: offsetToCommand[binaryOffset],
|
||||
...rest,
|
||||
};
|
||||
return Object.assign({}, binding, {
|
||||
commandOffset: offsetToCommand[binding.binaryOffset],
|
||||
binaryOffset: undefined,
|
||||
});
|
||||
});
|
||||
return {
|
||||
magic,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue