File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments