[Webkit-unassigned] [Bug 188951] New: Inconsistent function hoisting in for...in

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 26 00:25:37 PDT 2018


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

            Bug ID: 188951
           Summary: Inconsistent function hoisting in for...in
           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 = new Array(1);
for (var i in a){
        print("BT_FLAG");
        function v9() {
        }
}
print(typeof v9);
-----------------------------------------
Output of JavaScriptCore :
function

However, output of other js engines(v8, ch, spm) is :
undefined

BT group
2018.08.26

-- 
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/20180826/f26b1538/attachment.html>


More information about the webkit-unassigned mailing list