chakra-core / chakra-core/ChakraCore

Should we throw an early error for function calls on LHS in strict mode?

Open
#6,283 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.