ryardley / pdsl

The expressive declarative toolkit for composing predicates in TypeScript or JavaScript
https://pdsl.site
MIT License
69 stars 2 forks source link

Misplaced comma should throw #164

Open ryardley opened 4 years ago

ryardley commented 4 years ago

This should throw because there is a missing comma but it doesn't

p`{| 
  name: "foo",
  exact: {
    hello:"hello"
  }
  loose: {
    hello: "hello",
    ...
  }
|}`({
  name: "foo",
  exact: {
    hello: "hello"
  },
  loose: {
    hello: "hello",
    extra: true,
    other: 10
  }
});