Skip to content

Commit e5b40dd

Browse files
committed
chore: update docs
1 parent 360e7e5 commit e5b40dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ The `options` are:
101101
- `startingIndentLevel`: indent level to start from (defaults to `0`)
102102
- `comments`: generate comments if `true` (defaults to `false`)
103103
- `output`: output stream to write the rendered code to (defaults to `null`)
104-
- `generator`: custom code generator (defaults to `astring.baseGenerator`)
104+
- `generator`: custom code generator (defaults to `GENERATOR`)
105105
- `sourceMap`: [source map generator](https://github.com/mozilla/source-map#sourcemapgenerator) (defaults to `null`)
106106
- `expressionsPrecedence`: custom map of node types and their precedence level (defaults to `EXPRESSIONS_PRECEDENCE`)
107107

@@ -250,7 +250,7 @@ This example shows how to support the `await` keyword which is part of the [asyn
250250
// Make sure the astring module is imported and that `Object.assign` is defined
251251

252252
// Create a custom generator that inherits from Astring's base generator
253-
var customGenerator = Object.assign({}, astring.baseGenerator, {
253+
var customGenerator = Object.assign({}, astring.GENERATOR, {
254254
AwaitExpression: function (node, state) {
255255
state.write('await ')
256256
var argument = node.argument

0 commit comments

Comments
 (0)