Changeset 107208 in webkit
- Timestamp:
- Feb 9, 2012 3:21:46 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r107205 r107208 1 2012-02-09 Shinya Kawanaka <shinyak@google.com> 2 3 ASSERT_NO_EXCEPTION should be initialized with non-zero value. 4 https://bugs.webkit.org/show_bug.cgi?id=78194 5 6 Reviewed by Hajime Morita. 7 8 ExceptionCode should not be checked without initializing it. 9 However, we encountered a bug that breaks this rule. 10 It was missed until now because ExceptionCode is sometimes set to 0 even if it is not initialized. 11 This patch ensures it is initialized as non-zero value. 12 13 No new tests, no change in behavior. 14 15 * dom/ExceptionCodePlaceholder.cpp: 16 (WebCore::NoExceptionAssertionChecker::NoExceptionAssertionChecker): 17 (WebCore::NoExceptionAssertionChecker::~NoExceptionAssertionChecker): 18 * dom/ExceptionCodePlaceholder.h: 19 (NoExceptionAssertionChecker): 20 1 21 2012-02-09 Roland Steiner <rolandsteiner@chromium.org> 2 22 -
trunk/Source/WebCore/dom/ExceptionCodePlaceholder.cpp
r95901 r107208 37 37 38 38 NoExceptionAssertionChecker::NoExceptionAssertionChecker(const char* file, int line) 39 : ExceptionCodePlaceholder( 0)39 : ExceptionCodePlaceholder(defaultExceptionCode) 40 40 , m_file(file) 41 41 , m_line(line) … … 45 45 NoExceptionAssertionChecker::~NoExceptionAssertionChecker() 46 46 { 47 ASSERT_AT(!m_code , m_file, m_line, "");47 ASSERT_AT(!m_code || m_code == defaultExceptionCode, m_file, m_line, ""); 48 48 } 49 49 -
trunk/Source/WebCore/dom/ExceptionCodePlaceholder.h
r95901 r107208 71 71 72 72 private: 73 static const ExceptionCode defaultExceptionCode = 0xaaaaaaaa; 73 74 const char* m_file; 74 75 int m_line;
Note: See TracChangeset
for help on using the changeset viewer.