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

RESOLVED FIXED

Status

()

Core
JavaScript Engine
--
critical
RESOLVED FIXED
6 years ago
4 years ago

People

(Reporter: Jesse Ruderman, Assigned: luke)

Tracking

(Blocks: 1 bug, {assertion, regression, testcase})

Trunk
x86_64
Mac OS X
assertion, regression, testcase
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
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.
(Assignee)

Comment 1

6 years ago
Created attachment 540061 [details] [diff] [review]
add another case to assert

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+
(Assignee)

Comment 2

6 years ago
http://hg.mozilla.org/tracemonkey/rev/a5a8d503df69
Whiteboard: fixed-in-tracemonkey
cdleary-bot mozilla-central merge info:
http://hg.mozilla.org/mozilla-central/rev/a5a8d503df69
Status: ASSIGNED → RESOLVED
Last Resolved: 6 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.