Index: LayoutTests/fast/js/iterable-object.html |
diff --git a/LayoutTests/fast/js/iterable-object.html b/LayoutTests/fast/js/iterable-object.html |
index 70e481af7491b1f4fe2aaafb565767a8d754e52c..c3e4a2ea723cb25c99e19ab2bfc5150a5c56a30e 100644 |
--- a/LayoutTests/fast/js/iterable-object.html |
+++ b/LayoutTests/fast/js/iterable-object.html |
@@ -28,6 +28,30 @@ for (var entry of internals.entries()) { |
debug('entry = ' + entry); |
} |
+shouldThrow('internals.forEach("not a function")'); |
+shouldThrow('internals.forEach(function () { debug("callback called"); throw Error("stop!"); })'); |
+internals.forEach(function (value, key, object) { |
+ debug(this + ', ' + value + ', ' + key + ', ' + object); |
+}, 'thisArg'); |
+internals.forEach(function (value) { |
+ debug(value + ': ' + this); |
+}); |
+internals.forEach(function (value) { |
+ debug(value + ': ' + this); |
+}, null); |
+internals.forEach(function (value) { |
+ 'use strict'; |
+ debug(value + ': ' + this); |
+}); |
+internals.forEach(function (value) { |
+ 'use strict'; |
+ debug(value + ': ' + this); |
+}, null); |
+internals.forEach(function (value) { |
+ 'use strict'; |
+ debug(value + ': ' + typeof this); |
+}, 3.14); |
+ |
</script> |
</body> |
</html> |