RESOLVED FIXED 3743
Incorrect error message given for certain calls
https://bugs.webkit.org/show_bug.cgi?id=3743
Summary Incorrect error message given for certain calls
Oliver Hunt
Reported 2005-06-27 18:34:07 PDT
Due to an oversight, it is possible for ObjectImp::defaultValue() to overwrite an error thrown elsewhere in the interpreter.
Attachments
webkit layout test for this bug (925 bytes, text/html)
2005-06-27 18:36 PDT, Oliver Hunt
darin: review-
expected results of testcase for layout tests (121 bytes, text/plain)
2005-06-27 18:37 PDT, Oliver Hunt
no flags
Preliminary patch (641 bytes, patch)
2005-06-27 18:39 PDT, Oliver Hunt
no flags
Reformatted patch (610 bytes, patch)
2005-06-28 10:36 PDT, Oliver Hunt
darin: review+
Corrected webkit layout test (1.19 KB, text/html)
2005-06-28 23:12 PDT, Oliver Hunt
no flags
expected results of testcase for layout tests (170 bytes, text/plain)
2005-06-28 23:13 PDT, Oliver Hunt
no flags
Layout test, including expected output as a comment (1.41 KB, text/html)
2005-06-28 23:19 PDT, Oliver Hunt
darin: review+
fast/js/toString-stack-overflow.html (1.29 KB, text/html)
2005-06-29 13:53 PDT, Geoffrey Garen
no flags
fast/js/toString-stack-overflow-expected.txt (590 bytes, text/plain)
2005-06-29 13:54 PDT, Geoffrey Garen
no flags
Oliver Hunt
Comment 1 2005-06-27 18:36:25 PDT
Created attachment 2678 [details] webkit layout test for this bug
Oliver Hunt
Comment 2 2005-06-27 18:37:32 PDT
Created attachment 2679 [details] expected results of testcase for layout tests
Oliver Hunt
Comment 3 2005-06-27 18:39:12 PDT
Created attachment 2680 [details] Preliminary patch Still needs to be reformatted
Oliver Hunt
Comment 4 2005-06-27 18:40:50 PDT
Oops, for clarification, this bug has been pulled out from bug 3539
Joost de Valk (AlthA)
Comment 5 2005-06-27 23:26:33 PDT
Bug is confirmed. Is it dependent on the bug you pulled it from?
Oliver Hunt
Comment 6 2005-06-27 23:38:54 PDT
It's more or less independant -- the bug comes up in bug 3539, but isn't the cause (the exception being overwritten was the stack overflow...)
Oliver Hunt
Comment 7 2005-06-28 10:36:05 PDT
Created attachment 2689 [details] Reformatted patch
Oliver Hunt
Comment 8 2005-06-28 10:43:28 PDT
Comment on attachment 2689 [details] Reformatted patch Formatting should be correct now
Darin Adler
Comment 9 2005-06-28 10:46:40 PDT
Comment on attachment 2689 [details] Reformatted patch The patch looks fine. The layout test needs work, though, because it doesn't say what it's testing, nor describe the expected results. In fact, it's actively misleading because it talks about testing Array.toString with deep hierarchies, which is not the point. I'll set review+ on this, but we shouldn't land it until we have an improved layout test.
Darin Adler
Comment 10 2005-06-28 10:46:56 PDT
Comment on attachment 2678 [details] webkit layout test for this bug Need a better layout test.
Oliver Hunt
Comment 11 2005-06-28 22:59:04 PDT
Yeah, oops, i'd just pulled it from bug 3539, where it was demonstrating effectively the same thing... fixed shortly
Oliver Hunt
Comment 12 2005-06-28 23:12:44 PDT
Created attachment 2697 [details] Corrected webkit layout test
Oliver Hunt
Comment 13 2005-06-28 23:13:15 PDT
Created attachment 2698 [details] expected results of testcase for layout tests
Oliver Hunt
Comment 14 2005-06-28 23:19:21 PDT
Created attachment 2699 [details] Layout test, including expected output as a comment
Oliver Hunt
Comment 15 2005-06-29 01:16:16 PDT
Layout tests and results have been redone -- any further changes needed?
Oliver Hunt
Comment 16 2005-06-29 11:28:10 PDT
Comment on attachment 2699 [details] Layout test, including expected output as a comment just need someone to check whether this testcase is up to necessary standard
Geoffrey Garen
Comment 17 2005-06-29 13:53:35 PDT
Created attachment 2705 [details] fast/js/toString-stack-overflow.html Reformatted layout test for friendliness to manual testing
Geoffrey Garen
Comment 18 2005-06-29 13:54:46 PDT
Created attachment 2706 [details] fast/js/toString-stack-overflow-expected.txt Expected results for reformatted test
Darin Adler
Comment 19 2005-06-29 15:36:47 PDT
Comment on attachment 2699 [details] Layout test, including expected output as a comment This layout test looks fine. r=me I think it would be even better if the expected result was mentioned in something visible when looking at the HTML.
Note You need to log in before you can comment on or make changes to this bug.