Closed
Bug 1226398
Opened 9 years ago
Closed 8 years ago
Stop using legacy generators in dom/indexedDB/test
Categories
(Core :: DOM: Workers, defect)
Core
DOM: Workers
Tracking
()
RESOLVED
FIXED
mozilla54
Tracking | Status | |
---|---|---|
firefox54 | --- | fixed |
People
(Reporter: emk, Assigned: arai)
References
Details
Attachments
(2 files)
(deleted),
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•8 years ago
|
||
should be fixed by bug 1321218.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 2•8 years ago
|
||
apparently there's enough number of overlooked consumers.
will fix here.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → arai.unmht
Status: REOPENED → ASSIGNED
Assignee | ||
Updated•8 years ago
|
Assignee | ||
Comment 3•8 years ago
|
||
just changed legacy generator to ES6 generator.
Attachment #8835718 -
Flags: review?(jaws)
Comment 4•8 years ago
|
||
Comment on attachment 8835718 [details] [diff] [review]
Remove remaining legacy generator from dom/indexedDB/test/.
Review of attachment 8835718 [details] [diff] [review]:
-----------------------------------------------------------------
Can we get an eslint rule to enforce this? Look at the patch on bug 1329182 to get an example of how an eslint rule can be created. Feel free to join #eslint if you want to ask questions.
Assignee | ||
Comment 5•8 years ago
|
||
this is just an invalid syntax per spec, so applying eslint with standard configuration should catch it.
there's exceptional case, that is yield without operand, in non strict mode:
function f() { yield; }
it's currently parsed as legacy generator in SpiderMonkey,
but it's also a valid syntax per spec, since it's just an identifier outside of generator.
I don't think it worth detecting that case, as I don't see that case in all files I touched this time (including other bugs)
then, currently dom/ is ignored in eslint.
I'll change it to check dom/indexedDB.
Assignee | ||
Comment 6•8 years ago
|
||
changed .eslintignore to include dom/indexedDB.
also, to pass the test, changed conditional catch to standard syntax.
Attachment #8835756 -
Flags: review?(jaws)
Comment 7•8 years ago
|
||
Comment on attachment 8835756 [details] [diff] [review]
Part 2: Check dom/indexedDB/ in eslint.
Review of attachment 8835756 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks, this is great!
Attachment #8835756 -
Flags: review?(jaws) → review+
Updated•8 years ago
|
Attachment #8835718 -
Flags: review?(jaws) → review+
Assignee | ||
Comment 8•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f248ec7b14ab68461d112afa97794e0a28f21939
Bug 1226398 - Part 1: Remove remaining legacy generator from dom/indexedDB/test/. r=jaws
https://hg.mozilla.org/integration/mozilla-inbound/rev/0ec46eb0c0eddc4c0bd871af8d9076a4e7b56e4c
Bug 1226398 - Part 2: Check dom/indexedDB/ in eslint. r=jaws
Comment 9•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f248ec7b14ab
https://hg.mozilla.org/mozilla-central/rev/0ec46eb0c0ed
Status: ASSIGNED → RESOLVED
Closed: 8 years ago → 8 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Reporter | ||
Comment 10•8 years ago
|
||
Again, test_getFileId.html still has a legacy generator. ESLint did not catch this because... the type attribute has a versioned parameter! Apparently ESLint ignores <script>s if the type attribute contains a version parameter.
Flags: needinfo?(arai.unmht)
Assignee | ||
Comment 11•8 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #10)
> Again, test_getFileId.html still has a legacy generator. ESLint did not
> catch this because... the type attribute has a versioned parameter!
> Apparently ESLint ignores <script>s if the type attribute contains a version
> parameter.
thanks.
apparently the test file is not used.
I don't see any reference for "test_getFileId.html" in tree, and also it's not hit in try run.
Flags: needinfo?(arai.unmht)
Reporter | ||
Comment 12•8 years ago
|
||
Hm, bug 994190 removed test_getFileId.html from mochitest.ini, but it didn't remove the file itself. Moreover, I could not find the explanation why the test was removed.
You need to log in
before you can comment on or make changes to this bug.
Description
•