jeswr / jeswr/pretty-turtle

Bug: Crash on `{} => true`

Open
#28 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The following causes a crash

```ts
import { Parser } from 'n3';
import { write } from '@jeswr/pretty-turtle';

const parser = new Parser({ format: 'text/n3' });
write(parser.parse('{} => true .'), { format: 'text/n3' }).then(console.log)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the TypeScript reproduction in the issue with n3's Parser and @jeswr/pretty-turtle's write function, then trace where the {} => true input causes the crash. Done means this valid-looking input no longer crashes and its resulting behavior is covered by a regression test or otherwise verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.