diff --git a/npm/oxc-parser/README.md b/npm/oxc-parser/README.md index 06b85a4ce..d186f98d1 100644 --- a/npm/oxc-parser/README.md +++ b/npm/oxc-parser/README.md @@ -15,8 +15,7 @@ test(oxc.parseSync(sourceText, options)); test(await oxc.parseAsync(sourceText, options)); function test(ret) { - const program = JSON.parse(ret.program); - assert(program.body.length == 1); + assert(ret.program.body.length == 1); assert(ret.errors.length == 0); } ```