Closed Bug 909511 Opened 11 years ago Closed 11 years ago

""toString" is read-only" in errors in osfile_unix_allthreads.jsm

Categories

(Toolkit Graveyard :: OS.File, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla26

People

(Reporter: fabrice, Assigned: fabrice)

References

Details

(Keywords: regression, smoketest)

Attachments

(1 file)

I encountered this error on current m-c: [JavaScript Error: ""toString" is read-only" {file: "resource://gre/modules/osfile/osfile_unix_allthreads.jsm" line: 103}] which makes everything else from this file fail.
What do you mean "everything else from this file"?
well, it looks like the JS engine bails out from the function at this point, so all the object properties set afterwards are not set, etc.
Weird. Is that on the main thread or in a worker?
That's in the main thread.
For the moment, I cannot reproduce. Do you have logs or STR?
Attached patch patchSplinter Review
So it looks like importing the jsm from within a function makes things go wrong. I'm not sure which underlying changes caused that, but we can workaround for now.
Assignee: nobody → fabrice
Attachment #796397 - Flags: review?(ferjmoreno)
Comment on attachment 796397 [details] [diff] [review] patch Review of attachment 796397 [details] [diff] [review]: ----------------------------------------------------------------- No idea about why this happens... However, the workaround is acceptable for me.
Attachment #796397 - Flags: review?(ferjmoreno) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Fwiw, the core issue is fixed by bug 1014484.
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: