MatAtBread / fast-async

605 stars 21 forks source link

Transforming constants with "arguments" object property names? #34

Closed djMax closed 7 years ago

djMax commented 7 years ago
console.log({
  arguments: [4567],
});

async function foo() {
  console.log({
    arguments: [1234],
  });
}

foo();

The output is:

{ arguments: [ 4567 ] }
{ '$args': [ 1234 ] }
djMax commented 7 years ago

quotes around the property name is a workaround, but this certainly seems to be a bug.

matAtWork commented 7 years ago

Thanks for the report - it's a bug. I'll close here as (as you correctly identified), it's a nodent bug