rserota / wad

Web Audio DAW. Use the Web Audio API for dynamic sound synthesis. It's like jQuery for your ears.
MIT License
1.89k stars 160 forks source link

Fix assignment to arguments object for strict mode #61

Closed mattbierner closed 8 years ago

mattbierner commented 8 years ago

I ran into a strict mode violation when attempting to use this library as an ES6 module. It seems arguments is being assigned to in shimConnect.

The change simplifies the code to just set the first arguments value instead of converting an array and shifting and unshifting.

rserota commented 8 years ago

Thanks for your interest in wad.js! I'm happy to merge in this change, but I want to note that the issue you're having is with tuna.js, not with the wad.js core. You might want to submit a pull request to the folks who maintain tuna. https://github.com/Theodeus/tuna