[Webkit-unassigned] [Bug 157970] New: Early error on ANY operator before new.target

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat May 21 00:40:45 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=157970

            Bug ID: 157970
           Summary: Early error on ANY operator before new.target
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Macintosh
                OS: OS X 10.11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shvaikalesh at gmail.com

Consider the following code:

```js
function F()
{
    if (!new.target) return new F
}
```

WebKit Nightly throws `SyntaxError: new.target can't come after a prefix operator.`
because of negation (no `++`/`--` there). However, that is valid code.
Both Chrome Canary and Firefox parse it OK.

This might be a regression caused by https://bugs.webkit.org/show_bug.cgi?id=151148

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160521/934cffb0/attachment.html>


More information about the webkit-unassigned mailing list