Skip to content
This repository was archived by the owner on Aug 26, 2023. It is now read-only.

JS Test Cases #2

Open
3 of 7 tasks
aphelionz opened this issue Oct 4, 2019 · 0 comments
Open
3 of 7 tasks

JS Test Cases #2

aphelionz opened this issue Oct 4, 2019 · 0 comments

Comments

@aphelionz
Copy link
Owner

In order to support a "minimum viable" js -> ambient parser, we need to support the following test cases:

  • let a = "foo" - value, constant (satisfied in test case 006)
  • let b = () => "foo" - function, no arguments, constant expression (satisfied in test case 002, 003, 004, 005, 007)
  • let c = b() - value, variable expression (satisfied in test case 007)
  • let d = (x) => x - function, 1 argument, argument expression
  • let e = d("foo") - value, function variable expression, constant expression
  • let f = (x) => x() - function, 1 argument, function argument expression
  • let g = f(b) - value, function and value variable expressions
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant