Bug 988416: Test for the Intl property existence before using it; r=till
authorBenjamin Bouvier <benj@benj.me>
Mon, 14 Apr 2014 17:43:33 +0200
changeset 196872 cc7f25b7ed2eb39d8c6b4cfbbc6388efc4829e3c
parent 196871 d92206bb34a6f9ab33f4320029afe6426f7e93e7
child 196873 493ecd06270a80e47ac9650061e1e2e6fbcdeaa0
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstill
bugs988416
milestone31.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 988416: Test for the Intl property existence before using it; r=till
js/src/jit-test/tests/self-hosting/define-value-property.js
--- a/js/src/jit-test/tests/self-hosting/define-value-property.js
+++ b/js/src/jit-test/tests/self-hosting/define-value-property.js
@@ -1,5 +1,8 @@
 // These tests just mustn't trigger asserts.
+if (!this.hasOwnProperty('Intl'))
+    quit();
+
 Object.prototype.get = 5;
 new Intl.Collator().resolvedOptions();
 
 Intl.DateTimeFormat.supportedLocalesOf('en');