chakra-core / chakra-core/ChakraCore
Should we throw an early error for function calls on LHS in strict mode?
Open
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
SpiderMonkey throws an early error in the following case:
```js
function f() {}
function g() { 'use strict'; if (false) f() = 1; }
```
whereas CC and V8 do not. Should we throw early as well?
Contributor guide
Assessment
This issue has not been assessed yet.