[Webkit-unassigned] [Bug 187945] New: Different output compared with other JS engines: can't find variable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 24 00:54:10 PDT 2018


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

            Bug ID: 187945
           Summary: Different output compared with other JS engines: can't
                    find variable
           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

Hello,
    Running following js code:
-----------------------------------
let testCases = [                                                                                                              
  function() {
    return {
      start: 0,
      end: 100,
      test: function test() {
      }   
    };  
  },  
];
for(let testCase of testCases) {
  let testInfo = testCase();

  function run() {
      print(testInfo);
  }

  run();

}

print("BT_FLAG");
-----------------------------------

    Output of ch, v8 and firefox:
[object Object]
BT_FLAG

    However, output of jsc is:
Exception: ReferenceError: Can't find variable: testInfo


BT group
2018.7.24

-- 
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/20180724/bc1d20ec/attachment-0001.html>


More information about the webkit-unassigned mailing list