We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e64123 commit d23a94bCopy full SHA for d23a94b
python/pythonmonkey/builtin_modules/console.js
@@ -47,9 +47,9 @@ class Console {
47
ignoreErrors = true;
48
options = { stdout, stderr, ignoreErrors };
49
}
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'));
+
+ this.#writeToStdout = options.stdout.write;
+ this.#writeToStderr = options.stderr.write;
53
54
this.log = (...args) => this.#writeToStdout(this.#formatToStr(...args));
55
this.debug = (...args) => this.#writeToStdout(this.#formatToStr(...args));
0 commit comments