Skip to content

Commit 0ea3ced

Browse files
committed
refactor: update example
1 parent 4106459 commit 0ea3ced

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

example/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ parser
2727
* Compiled output
2828
*/
2929
const output = buffer.flush()
30-
console.log(output)
3130

3231
const state = { username: 'virk' }
3332

@@ -42,5 +41,5 @@ function reThrow(error: Error) {
4241
/**
4342
* Wrap inside function and invoke it
4443
*/
45-
const fn = new Function('state, escape, reThrow', output)
44+
const fn = new Function('state', 'escape', 'reThrow', output)
4645
console.log(fn(state, escape, reThrow))

0 commit comments

Comments
 (0)