RESOLVED DUPLICATE of bug 187945 188784
Wrong Reference Error Output
https://bugs.webkit.org/show_bug.cgi?id=188784
Summary Wrong Reference Error Output
sunlili
Reported 2018-08-21 04:50:01 PDT
Executing following code : ---------------------------------------------------------- let testCases = [ function(){return 1;}, function(){return 2} ]; let passed = true; const isFloatTest = true; function makeArray(size = 10){ } function makeSource(size = 10) { } for(let testCase of testCases) { let results = []; let testInfo = testCase(); let src; if(!testInfo.makeSource) { src = makeSource(testInfo.end - testInfo.start); } function run(gen) { if(testInfo.makeSource) { src = testInfo.makeSource(); } } run(makeArray); } if(passed) { print("PASSED"); } else { print("FAILED"); } print("BT_FLAG"); ------------------------------------------------------- The output(ChakraCore, V8, SpiderMonkey) should be : PASSED BT_FLAG However, JavaScriptCore throws a Reference Error: Exception: ReferenceError: Can't find variable: testInfo BT_GROUP 2018/8/21
Attachments
Yusuke Suzuki
Comment 1 2018-08-31 04:24:49 PDT
*** This bug has been marked as a duplicate of bug 187945 ***
Note You need to log in before you can comment on or make changes to this bug.