haikuwebkit/LayoutTests/js/script-tests/string-index-overflow.js

7 lines
255 B
JavaScript

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)');