Index: src/i18n.js |
diff --git a/src/i18n.js b/src/i18n.js |
index 79e988062e9425d052830d8b157089702a6bd83d..a4556c75637006135575d9f0849f75e1cdc8edd1 100644 |
--- a/src/i18n.js |
+++ b/src/i18n.js |
@@ -1989,14 +1989,14 @@ OverrideFunction(GlobalString.prototype, 'localeCompare', function(that) { |
* If the form is not one of "NFC", "NFD", "NFKC", or "NFKD", then throw |
* a RangeError Exception. |
*/ |
-OverrideFunction(GlobalString.prototype, 'normalize', function(that) { |
+OverrideFunction(GlobalString.prototype, 'normalize', function(form) { |
if (%_IsConstructCall()) { |
throw MakeTypeError(kOrdinaryFunctionCalledAsConstructor); |
} |
CHECK_OBJECT_COERCIBLE(this, "String.prototype.normalize"); |
- var form = GlobalString(%_Arguments(0) || 'NFC'); |
+ form = IS_UNDEFINED(form) ? 'NFC' : form; |
var NORMALIZATION_FORMS = ['NFC', 'NFD', 'NFKC', 'NFKD']; |