Skip to content

Commit

Permalink
Update js/compiler/compiler.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan <2103732+codebien@users.noreply.github.com>
  • Loading branch information
mstoykov and codebien authored Jul 4, 2024
1 parent e54b6b4 commit 6d2c3c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ type parsingState struct {
compiler *Compiler
}

// Parse the provided source, wrapping it as for CommonJS support if provided.
// The returned program can be compiled directly by Sobek.
// Additionally we return the end code that is parsed including any transformations required.
// Parse parses the provided source. It wraps as the same as CommonJS support.
// The returned program can be compiled directly by Sobek.
// Additionally, it returns the end code that has been parsed including any required transformations.
func (c *Compiler) Parse(
src, filename string, wrap bool,
) (prg *ast.Program, finalCode string, err error) {
Expand Down

0 comments on commit 6d2c3c2

Please sign in to comment.