Closed
Bug 905516
Opened 12 years ago
Closed 12 years ago
strict warning in method/core
Categories
(Add-on SDK Graveyard :: General, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: evold, Assigned: evold)
References
Details
Attachments
(2 files)
I see this when running tests:
JavaScript strict warning: resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/d4/2p9g41l50tq6mscn2hxqsfmc0000gn/T/tmp9PCAY4.mozrunner/extensions/0e92bb8d-412c-40c8-a29f-f68ee2a7001f@jetpack.xpi!/bootstrap.js -> resource://extensions.modules.0e92bb8d-412c-40c8-a29f-f68ee2a7001f-at-jetpack.commonjs.path/toolkit/loader.js -> resource://extensions.modules.0e92bb8d-412c-40c8-a29f-f68ee2a7001f-at-jetpack.commonjs.path/method/core.js, line 102: reference to undefined property value[("!" + name)]
JavaScript strict warning: resource://gre/modules/XPIProvider.jsm -> jar:file:///var/folders/d4/2p9g41l50tq6mscn2hxqsfmc0000gn/T/tmp9PCAY4.mozrunner/extensions/0e92bb8d-412c-40c8-a29f-f68ee2a7001f@jetpack.xpi!/bootstrap.js -> resource://extensions.modules.0e92bb8d-412c-40c8-a29f-f68ee2a7001f-at-jetpack.commonjs.path/toolkit/loader.js -> resource://extensions.modules.0e92bb8d-412c-40c8-a29f-f68ee2a7001f-at-jetpack.commonjs.path/method/core.js, line 102: reference to undefined property value[("!" + name)]
Priority: -- → P3
Comment 2•12 years ago
|
||
Yes, we do have a list of regexps in test runner to filter out stupid strict warnings like "reference to undefined property", I guess this one managed to be different enough so that test runner was not able to match and filter it out.
Flags: needinfo?(rFobic)
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → evold
| Assignee | ||
Comment 3•12 years ago
|
||
Pointer to Github pull-request
| Assignee | ||
Updated•12 years ago
|
Attachment #792347 -
Flags: review?(rFobic)
| Assignee | ||
Comment 5•12 years ago
|
||
(In reply to Irakli Gozilalishvili [:irakli] [:gozala] [@gozala] from comment #2)
> Yes, we do have a list of regexps in test runner to filter out stupid strict
> warnings like "reference to undefined property", I guess this one managed to
> be different enough so that test runner was not able to match and filter it
> out.
Adding this warning to that list didn't change anything fwiw.
Comment 6•12 years ago
|
||
Comment on attachment 792347 [details]
Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/1204
I thin we should just fix our filter to ignore reference to undefined properties. I was going to submit a pull request, but unfortunately github seems to commit changes when user has commit access to repo instead of submitting pull request :( So I basically end up commit this change:
https://github.com/mozilla/addon-sdk/commit/8327a731eb49e3b3f746a238dff34267a5aaa4b8
Attachment #792347 -
Flags: review?(rFobic) → review-
Comment 7•12 years ago
|
||
Pointer to Github pull-request
Comment 8•12 years ago
|
||
Comment on attachment 792393 [details]
Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/1206
See more comments in pull, but your comment in IRC made me realize that foo[bar[x]] may not be explicit enough so I'm proposing foo[bar[x] || undefined] to make it clear that author acknowledges what's going on. This seems to mitigate the problem.
I have submitted Bug 906866 to fix general warnings issue.
Attachment #792393 -
Flags: review?(evold)
| Assignee | ||
Updated•12 years ago
|
Attachment #792393 -
Flags: review?(evold) → review+
Comment 9•12 years ago
|
||
Commit pushed to master at https://github.com/mozilla/addon-sdk
https://github.com/mozilla/addon-sdk/commit/da85daa157d323d2dd597a670a3695b01b79fa10
Merge pull request #1206 from Gozala/bug/strict-wanings@905516
Bug 905516 - This mitigates problem by making intention explicit. r=@erikvold
Blocks: 907509
You need to log in
before you can comment on or make changes to this bug.
Description
•