Closed Bug 1339406 Opened 7 years ago Closed 7 years ago

Remove Rhino specific functions from jstest harness

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(7 files, 1 obsolete file)

And additionally check for other possible removals or changes, so I don't need to create a new bug report all the time.
Removes Rhino specific functions from jstest harness.

Rhino is basically unmaintained and it doesn't actually use our current jstest tests, so it's okay to remove these functions.
Attachment #8837202 - Flags: review?(arai.unmht)
Only adds two missing 'var's for local variables.
Attachment #8837204 - Flags: review?(arai.unmht)
Enables strict mode for the IIFEs in the top-level shell.js and browser.js files.
Attachment #8837206 - Flags: review?(arai.unmht)
MethodJIT is no longer present and so are its shell options.
Attachment #8837207 - Flags: review?(arai.unmht)
This removes unused functions from various shell.js files. The largest changes are in ecma_3/Date/shell.js, but that file was more or less an outdated version of ecma/shell.js!
Attachment #8837210 - Flags: review?(arai.unmht)
It almost looks like the helper variables were supposed to be block-scoped, because they're nested in a block statement.
Attachment #8837211 - Flags: review?(arai.unmht)
This updates or removes tests specific to TraceMonkey.
Attachment #8837212 - Flags: review?(arai.unmht)
Attachment #8837202 - Flags: review?(arai.unmht) → review+
Attachment #8837204 - Flags: review?(arai.unmht) → review+
Attachment #8837206 - Flags: review?(arai.unmht) → review+
Attachment #8837207 - Flags: review?(arai.unmht) → review+
Attachment #8837210 - Flags: review?(arai.unmht) → review+
Attachment #8837211 - Flags: review?(arai.unmht) → review+
Comment on attachment 8837212 [details] [diff] [review]
bug1339406-part7-remove-tracemonkey-tests.patch

Review of attachment 8837212 [details] [diff] [review]:
-----------------------------------------------------------------

Great :D

::: js/src/tests/js1_8_1/jit/math-jit-tests.js
@@ +81,3 @@
>    print(desc, ": FAILED: expected", typeof(expected), 
>          "(", uneval(expected), ")",
> +        "",

this line can just be removed.

@@ +84,3 @@
>          "!= actual",
>          typeof(actual), "(", uneval(actual), ")",
> +        "");

also this is unnecessary, but feel free to keep it there or ");" part there to reduce the diff.
Attachment #8837212 - Flags: review?(arai.unmht) → review+
Update part 7 per review comments, carrying r+.
Attachment #8837212 - Attachment is obsolete: true
Attachment #8837254 - Flags: review+
(In reply to Tooru Fujisawa [:arai] from comment #8)
> also this is unnecessary, but feel free to keep it there or ");" part there
> to reduce the diff.

I've removed both empty strings, because I don't think it's too crucial to keep the diff minimal for these changes. :-)
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/cce05a2b6308
Part 1: Remove Rhino specific functions from jstest harness. r=arai
https://hg.mozilla.org/integration/mozilla-inbound/rev/f34ed6a5b9ca
Part 2: Add missing 'var' declarations for local variables in jstest harness functions. r=arai
https://hg.mozilla.org/integration/mozilla-inbound/rev/fb11e452585a
Part 3: Change top-level shell.js and browser.js IIFE to strict mode. r=arai
https://hg.mozilla.org/integration/mozilla-inbound/rev/509ba75cce2b
Part 4: Remove tests for methodjit shell options. r=arai
https://hg.mozilla.org/integration/mozilla-inbound/rev/c5f655086e0c
Part 5: Remove unused functions from shell.js files. r=arai
https://hg.mozilla.org/integration/mozilla-inbound/rev/8de9955bf062
Part 6: Block-scope helper variables from ecma_6/Math/shell.js. r=arai
https://hg.mozilla.org/integration/mozilla-inbound/rev/9a7b08f075ac
Part 7: Remove tests for tracemonkey options from jstests. r=arai
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: