From 652920c5c377088768b02d031f26cece27558f18 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Sun, 30 Oct 2016 17:07:24 +0200 Subject: [PATCH] 2.0 migration note for duk_char_code_at() --- doc/release-notes-v2-0.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/release-notes-v2-0.rst b/doc/release-notes-v2-0.rst index 31120ea5..a62d93fa 100644 --- a/doc/release-notes-v2-0.rst +++ b/doc/release-notes-v2-0.rst @@ -985,6 +985,11 @@ Other incompatible changes * If a user function is called using the identifier 'eval', such a call won't get tailcall optimized even if otherwise possible. +* ``duk_char_code_at()`` and ``String.charCodeAt()`` now return 0xFFFD (Unicode + replacement character) if the string cannot be decoded as extended UTF-8, + previously an error was thrown. This situation never occurs for standard + Ecmascript strings or valid UTF-8 strings. + Known issues ============