-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
Rollup Version
4.0.0
Operating System (or Browser)
REPL, Windows, WSL
Node Version (if applicable)
No response
Link To Reproduction
Expected Behaviour
No error happens.
Actual Behaviour
On REPL, the following error happens.
rror: RollupError: unreachable
at Je (logs.ts:37:24)
at ea.error (Module.ts:389:10)
at ea.tryParse (Module.ts:1334:16)
at ea.setSource (Module.ts:834:33)
at Kl.addModuleSource (ModuleLoader.ts:317:11)
{cause: {}, code: 'PARSE_ERROR', id: '/main.js'}
On Windows/WSL, the following error happens
thread '<unnamed>' panicked at parse_ast\src\convert_ast\annotations.rs:24:26:
byte index 3 is not a char boundary; it is inside '“' (bytes 1..4) of ` “__`
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread '<unnamed>' panicked at parse_ast/src/convert_ast/annotations.rs:24:26:
byte index 3 is not a char boundary; it is inside '“' (bytes 1..4) of ` “__`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
Aborted
Real world code: https://github.com/d3/d3-brush/blob/ec2bce6f15074a9ead7f9a84c61335be51c123a3/src/brush.js#L125