Closed
Bug 862921
Opened 12 years ago
Closed 12 years ago
ParallelArray.js: Generalize AssertSequentialIsOK logic and improve its error message.
Categories
(Core :: JavaScript Engine, enhancement)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: pnkfelix, Assigned: pnkfelix)
References
Details
Attachments
(1 file, 1 obsolete file)
|
1.69 KB,
patch
|
nmatsakis
:
review+
|
Details | Diff | Splinter Review |
1. If one passes a `mode` argument without a property named `mode`,
the previous version will fall into the ThrowError branch
(because mode.mode => undefined and undefined !== "seq")
2. The old error message used the strings "par" and "seq", which might
make the reader think that the assertion is solely about the
appropriate value for the `mode` property, which happens to take on
the values "par" or "seq" in some cases. But the real condition
being signalled here is not about the string values "par" or "seq";
it is instead about the dynamic behavior of the runtime system.
This changes the error message to use longer phrases, which should
hopefully make the intent clearer.
There is a third change I want to make, changing the logic of the
conditional guard further, but that change is not as important to me
as the two above.
| Assignee | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 738587 [details] [diff] [review]
patch A v1: fix the guard and the message.
(removing review request until I resolve why this is not rendering in splinter.)
Attachment #738587 -
Flags: review?(nmatsakis)
| Assignee | ||
Comment 3•12 years ago
|
||
(this is the same as 738587 except generated without `--color` flag.)
Attachment #738587 -
Attachment is obsolete: true
| Assignee | ||
Updated•12 years ago
|
Attachment #738596 -
Flags: review?(nmatsakis)
Updated•12 years ago
|
Attachment #738596 -
Flags: review?(nmatsakis) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 5•12 years ago
|
||
Keywords: checkin-needed
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in
before you can comment on or make changes to this bug.
Description
•