Title: [200434] trunk/Source/_javascript_Core
- Revision
- 200434
- Author
- [email protected]
- Date
- 2016-05-04 15:22:31 -0700 (Wed, 04 May 2016)
Log Message
Unreviewed, fix test for new ArrayIteratorPrototype.next() error message.
* tests/stress/array-iterators-next-with-call.js:
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (200433 => 200434)
--- trunk/Source/_javascript_Core/ChangeLog 2016-05-04 22:14:45 UTC (rev 200433)
+++ trunk/Source/_javascript_Core/ChangeLog 2016-05-04 22:22:31 UTC (rev 200434)
@@ -1,3 +1,9 @@
+2016-05-04 Keith Miller <[email protected]>
+
+ Unreviewed, fix test for new ArrayIteratorPrototype.next() error message.
+
+ * tests/stress/array-iterators-next-with-call.js:
+
2016-05-04 Filip Pizlo <[email protected]>
Speed up JSGlobalObject initialization by making some properties lazy
Modified: trunk/Source/_javascript_Core/tests/stress/array-iterators-next-with-call.js (200433 => 200434)
--- trunk/Source/_javascript_Core/tests/stress/array-iterators-next-with-call.js 2016-05-04 22:14:45 UTC (rev 200433)
+++ trunk/Source/_javascript_Core/tests/stress/array-iterators-next-with-call.js 2016-05-04 22:22:31 UTC (rev 200434)
@@ -84,8 +84,10 @@
if (!didThrow)
throw "Error: no error thrown";
var expectedMessage = 'TypeError: %ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance';
- if (primitive == null)
- expectedMessage = 'TypeError: %ArrayIteratorPrototype%.next requires that |this| not be null or undefined';
+ if (primitive === null)
+ expectedMessage = 'TypeError: %ArrayIteratorPrototype%.next requires that |this| not be null';
+ if (primitive === undefined)
+ expectedMessage = 'TypeError: %ArrayIteratorPrototype%.next requires that |this| not be undefined';
if (String(didThrow) !== expectedMessage)
throw "Error: bad error thrown: " + didThrow;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes