Closed
Bug 771087
Opened 12 years ago
Closed 12 years ago
2 strict warnings in test_constants.xul
Categories
(Core :: js-ctypes, defect)
Core
js-ctypes
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: sgautherie, Assigned: Yoric)
References
()
Details
Attachments
(1 file, 1 obsolete file)
1.83 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
http://tinderbox.mozilla.org/showlog.cgi?log=SeaMonkey/1341473203.1341476269.12844.gz&fulltext=1
WINNT 5.2 comm-central-trunk debug test mochitest-other on 2012/07/05 00:26:43
{
JavaScript strict warning: chrome://mochitests/content/chrome/dom/system/tests/test_constants.xul, line 62: anonymous function does not always return a value
JavaScript strict warning: chrome://mochitests/content/chrome/dom/system/tests/test_constants.xul, line 65: anonymous function does not always return a value
}
Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → dteller
Attachment #639278 -
Flags: review+
Reporter | ||
Comment 3•12 years ago
|
||
Comment on attachment 639278 [details] [diff] [review]
Fix warnings
Review of attachment 639278 [details] [diff] [review]:
-----------------------------------------------------------------
At first glance, this looks like what I expected.
Did you actually mean to self-review this?
::: dom/system/tests/test_constants.xul
@@ +48,2 @@
> ok(true, "test_constants.xul: Chrome worker created");
> worker.onerror = function(error) {
Nit: While here, could you give names to anonymous functions?
@@ +48,4 @@
> ok(true, "test_constants.xul: Chrome worker created");
> worker.onerror = function(error) {
> error.preventDefault();
> ok(false, "error "+error);
Nit: While here, could you add missing spaces around '+'s?
Attachment #639278 -
Flags: feedback+
Assignee | ||
Comment 4•12 years ago
|
||
Done. Thanks for the review and for spotting the warnings!
Attachment #639278 -
Attachment is obsolete: true
Attachment #639286 -
Flags: review+
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•