Closed Bug 664951 Opened 9 years ago Closed 9 years ago

"Assertion failure: !args.rval().isPrimitive() && callee != args.rval().toObject()" with fixed proxy

Categories

(Core :: JavaScript Engine, defect, critical)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: luke)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, regression, testcase, Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

var handler = { fix: function() { return []; } };
var p = Proxy.createFunction(handler, function(){}, function(){});
Proxy.fix(p);
new p();

Assertion failure: !args.rval().isPrimitive() && callee != args.rval().toObject(), at js/src/jscntxtinlines.h:322

The first bad revision is:
changeset:   66c8ad02543b
user:        Luke Wagner
date:        Mon Aug 16 12:35:04 2010 -0700
summary:     Bug 581263 - remove slow natives (r=waldo,mrbkap)

I guess this is a case that wasn't fixed by the patch in bug 593277.
Thanks for the test-case.  Looks like another exception to the assert added by proxies.
Assignee: general → luke
Status: NEW → ASSIGNED
Attachment #540061 - Flags: review?(jwalden+bmo)
Attachment #540061 - Flags: review?(jwalden+bmo) → review+
http://hg.mozilla.org/tracemonkey/rev/a5a8d503df69
Whiteboard: fixed-in-tracemonkey
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Automatically extracted testcase for this bug was committed:

https://hg.mozilla.org/mozilla-central/rev/efaf8960a929
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.