Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.9.1, 5.11.0
-
Linux yoga 4.12.4-1-ARCH #1 SMP PREEMPT Fri Jul 28 18:54:18 UTC 2017 x86_64 GNU/Linux
Qt 5.9.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.1.1 20170630)
Vendor : Intel Open Source Technology Center
Renderer: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)
Version : 3.0 Mesa 17.1.5
Language: 1.30Linux yoga 4.12.4-1-ARCH #1 SMP PREEMPT Fri Jul 28 18:54:18 UTC 2017 x86_64 GNU/Linux Qt 5.9.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.1.1 20170630) Vendor : Intel Open Source Technology Center Renderer: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2) Version : 3.0 Mesa 17.1.5 Language: 1.30
Description
Testcase:
console.log(JSON.stringify(
'end error'.trim().split(/^|\s+/)
));
Expected result (as in browsers and Node.js):
["end","error"]
Observed result:
["","nd","error"]
d3.dispatch (a part of D3 4.0 library) uses that and gets broken:
https://github.com/d3/d3-dispatch/blob/master/src/dispatch.js#L16