mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 536748: fix argument index typo, r=gal
This commit is contained in:
parent
1b4fbd91e6
commit
6479d75e0d
@ -8385,7 +8385,7 @@ TraceRecorder::f2i(LIns* f)
|
|||||||
}
|
}
|
||||||
if (ci == &js_String_p_charCodeAt0_ci) {
|
if (ci == &js_String_p_charCodeAt0_ci) {
|
||||||
// Use a fast path builtin for a charCodeAt that converts to an int right away.
|
// Use a fast path builtin for a charCodeAt that converts to an int right away.
|
||||||
LIns* args[] = { fcallarg(f, 1) };
|
LIns* args[] = { fcallarg(f, 0) };
|
||||||
return lir->insCall(&js_String_p_charCodeAt0_int_ci, args);
|
return lir->insCall(&js_String_p_charCodeAt0_int_ci, args);
|
||||||
}
|
}
|
||||||
if (ci == &js_String_p_charCodeAt_ci) {
|
if (ci == &js_String_p_charCodeAt_ci) {
|
||||||
|
8
js/src/trace-test/tests/basic/bug536748.js
Normal file
8
js/src/trace-test/tests/basic/bug536748.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
// Do not assert.
|
||||||
|
|
||||||
|
var s = "a";
|
||||||
|
var b = 32767;
|
||||||
|
|
||||||
|
for (var i = 0; i < 10; ++i) {
|
||||||
|
b = b & s.charCodeAt();
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user