Closed
Bug 491965
Opened 17 years ago
Closed 17 years ago
TM: "Assertion failure: JSVAL_IS_NUMBER(v)" with "new Number(/x/)"
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla1.9.2a1
People
(Reporter: jruderman, Assigned: gal)
References
Details
(4 keywords, Whiteboard: fixed-in-tracemonkey)
Attachments
(2 files, 1 obsolete file)
|
2.68 KB,
patch
|
Details | Diff | Splinter Review | |
|
3.75 KB,
patch
|
graydon
:
review+
jorendorff
:
review+
|
Details | Diff | Splinter Review |
js> for (let i = 0; i < 5; ++i) print(new Number(/x/));
NaN
NaN
NaN
Assertion failure: JSVAL_IS_NUMBER(v), at ../jsnum.cpp:362
| Assignee | ||
Comment 2•17 years ago
|
||
We didn't properly signal to callNative that the slow native being called is a constructor. If we do so, the code falls on its face though in some old code that was trying to compensate for calling a builtin as constructor. We don't have any traceable constructors any more, so that special case code can be removed safely.
Cycling through the tryserver.
Attachment #376338 -
Flags: review?(graydon)
| Assignee | ||
Comment 3•17 years ago
|
||
Attachment #376338 -
Attachment is obsolete: true
Attachment #376338 -
Flags: review?(graydon)
| Assignee | ||
Comment 4•17 years ago
|
||
Comment 5•17 years ago
|
||
autoBisect shows this is probably related to bug 487134 :
The first bad revision is:
changeset: 27516:b8cf788763a0
user: jorendorff
date: Tue May 05 14:26:06 2009 -0700
summary: Record all calls to native functions (487134, r=gal, brendan).
Comment 6•17 years ago
|
||
Comment on attachment 376340 [details] [diff] [review]
patch with testcase
I think you might have requested review on this but forgot to set the flag when you updated the patch? It looks fine to me but I don't really know that path well. Confirm with jorendorff maybe?
Attachment #376340 -
Flags: review+
Updated•17 years ago
|
Flags: blocking1.9.1? → blocking1.9.1+
| Assignee | ||
Updated•17 years ago
|
Attachment #376340 -
Flags: review?(jorendorff)
| Assignee | ||
Comment 7•17 years ago
|
||
Comment on attachment 376340 [details] [diff] [review]
patch with testcase
Yeah, Jason should take a look but in the meantime I think we can land it.
| Assignee | ||
Updated•17 years ago
|
Whiteboard: checkin-needed
| Assignee | ||
Comment 8•17 years ago
|
||
Whiteboard: checkin-needed → fixed-in-tracemonkey
| Assignee | ||
Comment 9•17 years ago
|
||
This is a regression for a patch that is not on branch. Should not block.
| Assignee | ||
Comment 10•17 years ago
|
||
Unblocking after consultation with damon and shaver.
Flags: blocking1.9.1+
Comment 11•17 years ago
|
||
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Attachment #376340 -
Flags: review?(jorendorff) → review+
Comment 13•17 years ago
|
||
Keywords: fixed1.9.1
Comment 14•17 years ago
|
||
Verified fixed with testcase in comment 0 with the following debug builds:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a1pre)
Gecko/20090522 Minefield/3.6a1pre ID:20090522133810
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1pre)
Gecko/20090522 Shiretoko/3.5pre ID:20090522153422
Status: RESOLVED → VERIFIED
Flags: in-testsuite?
Keywords: fixed1.9.1 → verified1.9.1
Target Milestone: --- → mozilla1.9.2a1
Comment 15•17 years ago
|
||
js1_8_1/trace/trace-test.js
http://hg.mozilla.org/tracemonkey/rev/61892f57b46a
Flags: in-testsuite? → in-testsuite+
Comment 16•16 years ago
|
||
cvsroot/mozilla/js/tests/js1_8_1/trace/trace-test.js,v <-- trace-test.js
new revision: 1.14; previous revision: 1.13
/cvsroot/mozilla/js/tests/shell.js,v <-- shell.js
You need to log in
before you can comment on or make changes to this bug.
Description
•