You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
💾 ❨JSDB❩ No database found at /home/aral/sandbox/jsdb-multiline-text-test/test; creating it.
💾 ❨JSDB❩ Creating and persisting table table…
💾 ❨JSDB❩ ╰─ Created and persisted table in 1.224 ms.
💾 ❨JSDB❩ Table table initialised.
{ s: 'a\n multiline\n string' }
Second run: crash with error:
💾 ❨JSDB❩ Loading table table…
💾 ❨JSDB❩ ╰─ Loading table synchronously.
undefined:1
_ = { 's': `a
SyntaxError: Unexpected end of input
at JSTable.load (file:///home/aral/sandbox/jsdb-multiline-text-test/node_modules/@small-tech/jsdb/lib/JSTable.js:164:12)
at new JSTable (file:///home/aral/sandbox/jsdb-multiline-text-test/node_modules/@small-tech/jsdb/lib/JSTable.js:57:12)
at file:///home/aral/sandbox/jsdb-multiline-text-test/node_modules/@small-tech/jsdb/lib/JSDB.js:112:30
at Array.forEach (<anonymous>)
at JSDB.loadTables (file:///home/aral/sandbox/jsdb-multiline-text-test/node_modules/@small-tech/jsdb/lib/JSDB.js:109:61)
at new JSDB (file:///home/aral/sandbox/jsdb-multiline-text-test/node_modules/@small-tech/jsdb/lib/JSDB.js:82:12)
at Function.open (file:///home/aral/sandbox/jsdb-multiline-text-test/node_modules/@small-tech/jsdb/lib/JSDB.js:43:38)
at file:///home/aral/sandbox/jsdb-multiline-text-test/index.js:3:19
at ModuleJob.run (internal/modules/esm/module_job.js:169:25)
at async Loader.import (internal/modules/esm/loader.js:177:24)
The text was updated successfully, but these errors were encountered:
Reproduction
What happens
First run: OK (no bug in creation). Output:
Second run: crash with error:
The text was updated successfully, but these errors were encountered: