Closed Bug 390949 Opened 17 years ago Closed 17 years ago

ecma/String/15.5.4.6-2.js FAIL browser - NS_ERROR_UNEXPECTED

Categories

(Core :: JavaScript Engine, defect, P3)

x86
All
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: bc, Assigned: mrbkap)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

the following tests regressed in the browser between 8/2 - 8/3

ecma/String/15.5.4.6-2.js
ecma/ObjectObjects/15.2.4.2.js
js1_6/Regress/regress-353078.js
ecma/ObjectObjects/15.2.2.1.js
Flags: in-testsuite+
Flags: blocking1.9?
bc:  Are these tests still failing?  If so, is there any way you can narrow down the time-range?  This seems to have been a particularly busy check-in period.
yes, they are still failing. I'll try to get a better range today depending on how hughesnet treats me.
Blocking and P4.  Let's get more details here.
Flags: blocking1.9? → blocking1.9+
Priority: -- → P4
Priority: P4 → P3
bonsai 2007-08-02 15:00 and 2007-08-02 16:40 says bug 390626
Blocks: 390626
That means you, mrbkap.  Any thoughts?
Attached patch FixSplinter Review
The problem is that we're not setting the 'resolving' flag, so when we get the AddProperty notification when we're defining toString, we pass it along to our wrapped object. The fix is to toggle the flag around the JS_DefineFunction call.

Note that, even with this patch, we fail one of the tests. I blame bug 394012 for the failure.
Assignee: general → mrbkap
Status: NEW → ASSIGNED
Attachment #294302 - Flags: superreview?(jst)
Attachment #294302 - Flags: review?(jst)
Attachment #294302 - Flags: superreview?(jst)
Attachment #294302 - Flags: superreview+
Attachment #294302 - Flags: review?(jst)
Attachment #294302 - Flags: review+
Fix checked into trunk.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
(In reply to comment #6)

> Note that, even with this patch, we fail one of the tests. I blame bug 394012
> for the failure.


mrbkap, 

ecma/ObjectObjects/15.2.4.2.js does still fail with 
myvar = this;  myvar.toString = Object.prototype.toString; myvar.toString()  expected: [object Window] actual: [object XPCCrossOriginWrapper]  which I think you are referring, but there is a new failure in debug minefield builds with the test for 
var MYVAR = new Object( this ); MYVAR.toString() and expected: [object Window] actual: [object Window @ 0xb4996f18 (native @ 0xb49961c4)]

I'm not actually clear that this is a bug, but it is a change from 1.8.1 and from before the patch. It may mean something or not. I'll let you make the call. Otherwise it looks pretty good. Thanks!

Checking in public-failures.txt;
/cvsroot/mozilla/js/tests/public-failures.txt,v  <--  public-failures.txt
new revision: 1.14; previous revision: 1.13
I missed a couple of additional tests fixed by this patch.

/cvsroot/mozilla/js/tests/public-failures.txt,v  <--  public-failures.txt
new revision: 1.15; previous revision: 1.14
NS_ERROR_UNEXPECTED verified fixed 1.9.0.

mrbkap, what do you think about the remaining failure I mentioned in comment 8?
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: