RESOLVED FIXED 211089
[JSC] Add $vm.assertEnabled() to suppress Debug crash expected tests in release+assert build
https://bugs.webkit.org/show_bug.cgi?id=211089
Summary [JSC] Add $vm.assertEnabled() to suppress Debug crash expected tests in relea...
Yusuke Suzuki
Reported 2020-04-27 12:11:33 PDT
We have ASSERT which only fires when DOM object is wrongly implemented to catch wrong ones. We are using ASSERT in JSC side since we don't know all the DOM objects are correctly implemented. If it is not correctly implemented, in Release build, JSC is returning sub-optimal results. But in Debug build, we can catch the wrong ones, which allows us to fix the wrong thing while avoiding catastrophic crashes in release build. However, the test is assuming that ASSERT is not enabled if it is not Debug build. Release & Debug builds work, but Release+Assert does not meet this assumption. So, skip this based on `$vm.assertEnabled()`.
Attachments
Patch (6.24 KB, patch)
2020-04-27 12:22 PDT, Yusuke Suzuki
no flags
Patch (6.24 KB, patch)
2020-04-27 12:25 PDT, Yusuke Suzuki
keith_miller: review+
Yusuke Suzuki
Comment 1 2020-04-27 12:22:59 PDT
Yusuke Suzuki
Comment 2 2020-04-27 12:25:48 PDT
Keith Miller
Comment 3 2020-04-27 12:33:43 PDT
Comment on attachment 397715 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=397715&action=review r=me with suggestion > JSTests/stress/incorrect-put-could-generate-invalid-ic-involving-dictionary-flatten.js:19 > +if (!$vm.assertEnabled()) { Why not `if (!$vm.assertEnabled()) quit()`
Yusuke Suzuki
Comment 4 2020-04-27 13:39:15 PDT
Comment on attachment 397715 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=397715&action=review >> JSTests/stress/incorrect-put-could-generate-invalid-ic-involving-dictionary-flatten.js:19 >> +if (!$vm.assertEnabled()) { > > Why not `if (!$vm.assertEnabled()) quit()` Sounds good!
Yusuke Suzuki
Comment 5 2020-04-27 14:14:23 PDT
Radar WebKit Bug Importer
Comment 6 2020-04-27 14:15:17 PDT
Note You need to log in before you can comment on or make changes to this bug.