summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/js/script-tests/string-index-overflow.js
blob: 0a8fb9fc99f4d04bb11b923bf815bfd905d58373 (plain)
1
2
3
4
5
6
description(
"This test checks that accessing a string by an out of bounds index doesn't crash, furthermore the string should not appear to have out-of-bounds numeric properties."
);

shouldBeUndefined('"x"[10]');
shouldBeFalse('"x".hasOwnProperty(10)');