RESOLVED CONFIGURATION CHANGED 104309
try-finally should return try's completion value if finally returned normally
https://bugs.webkit.org/show_bug.cgi?id=104309
Summary try-finally should return try's completion value if finally returned normally
André Bargull
Reported 2012-12-06 15:15:57 PST
Steps to reproduce: Test case: --- try{ "try-value" }finally{ "finally-value" } --- Expected results: Per [ES5.1, 12.14 The try Statement], the code should return "try-value", but V8, JSC, IE and Spidermonkey return "finally-value". Opera does return "try-value".
Attachments
Alexey Shvayka
Comment 1 2020-08-22 13:46:27 PDT
(In reply to André Bargull from comment #0) > try{ "try-value" }finally{ "finally-value" } > > Expected results: > > Per [ES5.1, 12.14 The try Statement], the code should return "try-value", The code returns as expected in Safari 13.1, Chrome 84, and Firefox 81. Test coverage: https://test262.report/browse/language/statements/try/cptn-finally-wo-catch.js
Note You need to log in before you can comment on or make changes to this bug.