[Webkit-unassigned] [Bug 156680] New: [INTL] Use @thisNumberValue instead of `instanceof @Number`

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 17 14:39:45 PDT 2016


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

            Bug ID: 156680
           Summary: [INTL] Use @thisNumberValue instead of `instanceof
                    @Number`
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: utatane.tea at gmail.com

Use @thisNumberValue instead of `instanceof @Number`.
`instanceof @Number` is not enough;
For example, given 2 realms, the object created in one realm does not inherit the Number of another realm.
Another example is that the object which does not inherit Number.

```
var number = new Number(42);
number.__proto__ = null;
```

-- 
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/20160417/7255443f/attachment.html>


More information about the webkit-unassigned mailing list