| <script src="../resources/js-test-pre.js"></script> |
| description("Test that a 16-bit AtomicString containing only 8-bit characters doesn't confuse the JIT into thinking it's an 8-bit AtomicString."); |
| stringWithEmoji = "zest😐"; |
| var test16bit = stringWithEmoji.substring(0, 4); |
| o[test16bit] = "this makes it an AtomicString"; |
| function jittable(a, b) { |
| for (var i = 0; i < 5000; ++i) { |
| globalRope = "foo." + poisonedRope; |
| shouldBe("globalRope", "'foo.zest'"); |
| <script src="../resources/js-test-post.js"></script> |