Skip to content

Commit

Permalink
minimal fix for #885
Browse files Browse the repository at this point in the history
arguments can't be properly polyfilled for iteration, so we use the args array (which gets emitted anyway)
  • Loading branch information
wagich committed Nov 30, 2019
1 parent e238e87 commit 53302ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function defineProperty(proto: any, name: string, value: any, readonly?:
* first value that is valid.
*/
export function getValue<T>(...args: T[]): T {
for (const arg of arguments) {
for (const arg of args) {
if (arg !== undefined && arg === arg) {
return arg;
}
Expand Down

0 comments on commit 53302ad

Please sign in to comment.