MemberExpression over ObjectExpression ({ x: 1 }.x) should throw
See original GitHub issueHello! This is JavaScript behaviour in browser when I run { x: 1 }.x
:
SyntaxError: Unexpected token '.'
But jsep allows this kind of expressions. Is it bug or feature?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
c# - MemberExpression as object of its type - Stack Overflow
GetProperty(field); if (propertyInfo == null) throw new ArgumentException(string.Format("{0} doesn't exist on {1}", field, entityType.
Read more >Reconstructing TypeScript, part 1: bidirectional type checking
Usually it's OK to write an expression where a statement is expected, but for object expressions you need to wrap parentheses around them,...
Read more >C++ Standard Core Language Defect Reports and Accepted ...
C++ Standard Core Language Defect Reports and Accepted Issues, Revision 110. This document contains the C++ core language issues that have been categorized ......
Read more >XL C/C++: Language Reference - IBM
This document describes the syntax, semantics, and IBM® XL C/C++ for AIX® implementation of the C and C++ programming languages. Although the XL...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
All good 😃
Looks like I was wrong, sorry