From f428f8446326e53798429de6805a1d636f35f034 Mon Sep 17 00:00:00 2001 From: Terrence Cole Date: Thu, 18 Dec 2014 10:15:19 -0800 Subject: [PATCH] Bug 1109922 - Check for Intl before testing it; r=test-fix --HG-- extra : rebase_source : 84d074b0e073d5ea3b1d0c949dd593de73e26217 --- js/src/jit-test/tests/gc/bug-1109922.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/js/src/jit-test/tests/gc/bug-1109922.js b/js/src/jit-test/tests/gc/bug-1109922.js index 64067fe8d4b0..8bd5c52da79c 100644 --- a/js/src/jit-test/tests/gc/bug-1109922.js +++ b/js/src/jit-test/tests/gc/bug-1109922.js @@ -1,5 +1,6 @@ - -gczeal(14); -b = {}; -b.__proto__ = evalcx("lazy"); -(function m(b) {})(b.Intl.Collator(0)) +if (this.hasOwnProperty("Intl")) { + gczeal(14); + b = {}; + b.__proto__ = evalcx("lazy"); + (function m(b) {})(b.Intl.Collator(0)) +}