Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit 0b5109f

Browse files
committed
Fix cannot read property of undefined. Refs #27
1 parent dd482e3 commit 0b5109f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function sqliteParser(source, options, callback) {
1616
}
1717
const isAsync = typeof callback === 'function';
1818
const opts = { 'tracer': t, 'startRule': 'start' };
19-
if (options.streaming) {
19+
if (options && options.streaming) {
2020
opts['startRule'] = 'start_streaming';
2121
}
2222
if (isAsync) {

0 commit comments

Comments
 (0)