Changeset 250995 in webkit
- Timestamp:
- Oct 10, 2019, 4:44:01 PM (6 years ago)
- Location:
- trunk/JSTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r250932 r250995 1 2019-10-10 Mark Lam <mark.lam@apple.com> 2 3 Modify JSTests/stress/string-overflow-createError-*.js tests to allow an OOME result. 4 https://bugs.webkit.org/show_bug.cgi?id=202828 5 6 Reviewed by Yusuke Suzuki. 7 8 The tests intentionally allocate a very large string. Hence, for some memory 9 limited configurations, it is perfectly reasonable for the test to throw an Out 10 Of Memory error. 11 12 * stress/string-overflow-createError-builder.js: 13 * stress/string-overflow-createError-fit.js: 14 1 15 2019-10-09 Yusuke Suzuki <ysuzuki@apple.com> 2 16 -
trunk/JSTests/stress/string-overflow-createError-builder.js
r242910 r250995 12 12 // when the StringBuilder for the error message overflows, 13 13 // "object is not a function" is used as message for the TypeError. 14 if (exception.message != "object is not a function.") 14 if (exception.message != "object is not a function." 15 && exception != "Error: Out of memory") 15 16 throw "FAILED"; -
trunk/JSTests/stress/string-overflow-createError-fit.js
r242910 r250995 13 13 // it still fits into String::MaxLength. Check the start 14 14 // of the error message. 15 if (!exception.message.startsWith("foo is not a function")) 15 if (!exception.message.startsWith("foo is not a function") 16 && exception != "Error: Out of memory") 16 17 throw "FAILED";
Note:
See TracChangeset
for help on using the changeset viewer.