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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dmandelin, Unassigned)

References

Details

Attachments

(1 file, 2 obsolete files)

Attached patch strict mode patch (obsolete) — 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.
Blocks: 423896
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
Attachment #312405 - Attachment is obsolete: true
Attachment #317125 - Flags: review?(tglek)
Blocks: 429535
No longer blocks: 423896
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 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
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)
Dehydra and treehydra are no longer maintained by Mozilla.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: