[Webkit-unassigned] [Bug 190228] New: Function.prototype.toString has CRCRLF line breaks on Windows

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 2 17:02:03 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=190228

            Bug ID: 190228
           Summary: Function.prototype.toString has CRCRLF line breaks on
                    Windows
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Windows 10
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ross.kirsling at sony.com

Repro:
1. Create test.js:
> print(function foo() {
> });

2. Run it (with WinCairo JSC) and view output with explicit carriage returns:
> jsc.exe test.js | cat -v

3. Notice that carriage returns inside the function are doubled:
> function fn() {^M^M
> }^M

---

Notes:
- This results in various test failures under the ChakraCore/test directory:
    Basics/with3.js.default
    Closures/closure-funcexpr-eval.js.default
    Function/CallerArgs.js.default
    Function/funcExpr.js.default
    Function/moreFuncExpr.js.default
    Function/stackargs.js.default
    Function/toString.js.default
    LetConst/l.js.default
    strict/05.arguments.js.default
- It appears that read/readFile also produce CRCRLF in function bodies; perhaps this is why there aren't even more failures (e.g. stress/jsc-read.js).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181003/676376c9/attachment.html>


More information about the webkit-unassigned mailing list