From baef1a4f637a4486ee67c42816a9b918e1e2ddc5 Mon Sep 17 00:00:00 2001 From: Igor Sheludko Date: Mon, 26 Jun 2017 11:42:15 +0200 Subject: [PATCH] [tests] Fix test-native-method-names.js in noi18n mode. Change-Id: Ie0d3be6c36d13b073df2e59890ef6c714c529011 Reviewed-on: https://chromium-review.googlesource.com/548055 Reviewed-by: Toon Verwaest Commit-Queue: Igor Sheludko Cr-Commit-Position: refs/heads/master@{#46208} --- test/mjsunit/test-native-method-names.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mjsunit/test-native-method-names.js b/test/mjsunit/test-native-method-names.js index 2fbee01716..24d658edd9 100644 --- a/test/mjsunit/test-native-method-names.js +++ b/test/mjsunit/test-native-method-names.js @@ -36,7 +36,7 @@ function CheckGetter(object, name) { (function TestIntl() { - if (Intl == undefined) return; + if (typeof (Intl) == "undefined") return; CheckMethod(Intl, "getCanonicalLocales", 1); CheckMethod(Intl.Collator, "supportedLocalesOf", 1);