Skip to content

Commit d23a94b

Browse files
committed
Revert "console - substitute unprintable ?? characters for non-BMP code-points"
This reverts commit c7fd961.
1 parent 7e64123 commit d23a94b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/pythonmonkey/builtin_modules/console.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ class Console {
4747
ignoreErrors = true;
4848
options = { stdout, stderr, ignoreErrors };
4949
}
50-
/* s.replace workaround for https://github.com/Distributive-Network/PythonMonkey/issues/89 */
51-
this.#writeToStdout = (s) => options.stdout.write(s.replace(/[\uD800-\uDFFF]/g, '\uFFFD'));
52-
this.#writeToStderr = (s) => options.stderr.write(s.replace(/[\uD800-\uDFFF]/g, '\uFFFD'));
50+
51+
this.#writeToStdout = options.stdout.write;
52+
this.#writeToStderr = options.stderr.write;
5353

5454
this.log = (...args) => this.#writeToStdout(this.#formatToStr(...args));
5555
this.debug = (...args) => this.#writeToStdout(this.#formatToStr(...args));

0 commit comments

Comments
 (0)