Closed Bug 583925 Opened 13 years ago Closed 13 years ago
Int should not use caller's strictness in choosing radix
Attachment #462272 - Flags: review? → review?(jwalden+bmo)
Comment on attachment 462272 [details] [diff] [review] parseInt should not depend on its caller's strictness. >diff --git a/js/src/jsnum.cpp b/js/src/jsnum.cpp > * Non-standard: ES5 requires that parseInt interpret leading-zero > * strings not starting with "0x" or "0X" as decimal (absent an > * explicitly specified non-zero radix), but we continue to >+ * interpret such strings as octal. Add "per ES3" (and maybe "and the web") at the end here.
Attachment #462272 - Flags: review?(jwalden+bmo) → review+
Status: NEW → ASSIGNED
This patch is causing two trace-test failures: parseIntTests.js and strictParseIntOctal.js.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
IE9 beta treats strings with leading zeros as decimal in IE9 mode. Is the web compat still a problem?
You need to log in before you can comment on or make changes to this bug.