Closed Bug 950617 Opened 11 years ago Closed 11 years ago

Fix test code to not assume existence of TypedObject

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(1 file)

As noted in bug 948423 comment 7, my patch for that bug assumes the existence of TypedObject and will break when merged to aurora.
Attachment #8347959 - Flags: review?(sphink)
Comment on attachment 8347959 [details] [diff] [review]
fix-typedobject-test

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

::: js/src/jit-test/tests/gc/bug-948423.js
@@ +1,2 @@
> +if (!this.hasOwnProperty("TypedObject"))
> +  quit();

This works, though somewhat miraculously. The shell's quit() exit code handling is horribly broken. If you run

  js -e 'quit()'

you will exit with an error. (-e scripts will convert quit() or quit(0) into a status code of 3. -f scripts will not.)

Anyway, it's working properly for what you need.
Attachment #8347959 - Flags: review?(sphink) → review+
https://hg.mozilla.org/mozilla-central/rev/661aa3848628
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: