[Webkit-unassigned] [Bug 254504] New: javascriptcore has an Inconsistent execution results with object property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 27 01:20:51 PDT 2023


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

            Bug ID: 254504
           Summary: javascriptcore has an Inconsistent execution results
                    with object property
           Product: WebKit
           Version: Safari 16
          Hardware: Unspecified
                OS: macOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: chexiaokang at outlook.com

###### Version

safari 16.3 (18614.4.6.1.6)

###### Test case

```js
function foo() {
  var obj = {};
    var p0,p1
      switch (p0) {
        case (p0 = NaN):
        case p1:
          obj.prop = NaN;
          break;
      }
  return obj.prop
};
print(foo())
```

###### Execution steps

    .jsc Testcase.js

###### Output
```
undefined
```

###### Expected result
    NaN

###### Description

The correct output of the test case should be `NaN` while javascriptcore yields `undefined` . I think it might be an issue of javascriptcore.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230327/3befdd1b/attachment-0001.htm>


More information about the webkit-unassigned mailing list