blob: fc41e5079aa2d480ed7d07843f75f8187957a276 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
function f(x) {
assertEq(x.charCodeAt(1), 0x62);
assertEq(x.charAt(1), "b");
assertEq(x[1], "b");
}
function g() {
for (var i = 0; i < 100; i++) {
f("abc");
}
}
for (var j = 0; j < 10; j++) {
g();
}
|