Index: src/i18n.js |
diff --git a/src/i18n.js b/src/i18n.js |
index 53cc48714704169e6ac6d620a6299be8f206d827..2b8ba90c278ff2e6572505382627eab83c029de1 100644 |
--- a/src/i18n.js |
+++ b/src/i18n.js |
@@ -2002,6 +2002,7 @@ OverrideFunction(GlobalString.prototype, 'normalize', function() { |
} |
CHECK_OBJECT_COERCIBLE(this, "String.prototype.normalize"); |
+ var s = TO_STRING_INLINE(this); |
var formArg = %_Arguments(0); |
var form = IS_UNDEFINED(formArg) ? 'NFC' : TO_STRING_INLINE(formArg); |
@@ -2015,7 +2016,7 @@ OverrideFunction(GlobalString.prototype, 'normalize', function() { |
%_CallFunction(NORMALIZATION_FORMS, ', ', ArrayJoin)); |
} |
- return %StringNormalize(this, normalizationForm); |
+ return %StringNormalize(s, normalizationForm); |
} |
); |