[Webkit-unassigned] [Bug 188794] New: Array.prototype.reverse fail to work when after unarry plus expression

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 21 06:11:56 PDT 2018


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

            Bug ID: 188794
           Summary: Array.prototype.reverse fail to work when after unarry
                    plus expression
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sunlili at ict.ac.cn

Executing following code : 
-------------------------------------
var a= [1, 2.2, 3.3];
function Test()
{
    +a;
    a.reverse();
    print(a);
}
Test();
print("BT_FLAG");
-------------------------------------

Output should be :
3.3,2.2,1
BT_FLAG

However, output of JavaScriptCore is :
1,2.2,3.3
BT_FLAG


BT_GROUP
2018/8/21

-- 
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/20180821/3929eb4b/attachment.html>


More information about the webkit-unassigned mailing list