Closed
Bug 425845
Opened 17 years ago
Closed 12 years ago
Treehydra: Clean up libraries for strict mode
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Developer Infrastructure
Source Code Analysis
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: dmandelin, Unassigned)
References
Details
Attachments
(1 file, 2 obsolete files)
1.76 KB,
patch
|
Details | Diff | Splinter Review |
Currently even just importing treehydra.js and system.js gives a bunch of warnings in strict mode. Probably, we would prefer to have it not do that. I should mention that none of the warnings is an actual fault in the code, but it will make it difficult to use strict mode unless the libs are clean.
I attached a patch I used that's a starting point for this.
Comment 1•17 years ago
|
||
Comment on attachment 312405 [details] [diff] [review]
strict mode patch
> GCCNode.prototype.__defineGetter__("name", function () {
> if (DECL_P (this))
> return decl_name(this)
>+ throw new Error(".name not implemented for other than DECLs");
> })
>
>
I was gonna complain against this, but on second thought, looks good
Reporter | ||
Comment 2•17 years ago
|
||
Attachment #312405 -
Attachment is obsolete: true
Attachment #317125 -
Flags: review?(tglek)
Reporter | ||
Updated•17 years ago
|
Reporter | ||
Comment 3•17 years ago
|
||
This makes VEC_iterate more convenient, and also makes it match the original semantics better.
Attachment #317125 -
Attachment is obsolete: true
Attachment #317128 -
Flags: review?(tglek)
Attachment #317125 -
Flags: review?(tglek)
Comment 4•17 years ago
|
||
Comment on attachment 317128 [details] [diff] [review]
Small revision to make VEC_iterate more convenient
> function VEC_iterate (vec_node) {
>- if (vec_node)
>- return vec_node.base.vec
>+ // undefined is used for empty vectors, so support it nicely here.
>+ return vec_node ? vec_node.base.vec : [];
> }
I'm not sure if this is the correct place to put it. Seems that convenience changes to GCC GIMPLE behavior should be added similarly to GCCNode.prototype.operands
Reporter | ||
Comment 5•14 years ago
|
||
Comment on attachment 317128 [details] [diff] [review]
Small revision to make VEC_iterate more convenient
Cleaning up ancient review requests.
Attachment #317128 -
Flags: review?(tglek)
Comment 6•12 years ago
|
||
Dehydra and treehydra are no longer maintained by Mozilla.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•