mirror of
https://github.com/danbulant/oxc
synced 2026-05-20 04:38:54 +00:00
14 lines
465 B
JavaScript
14 lines
465 B
JavaScript
const bindings = require('./bindings.js');
|
|
|
|
module.exports.parseWithoutReturn = bindings.parseWithoutReturn;
|
|
|
|
module.exports.parseAsync = async function parseAsync(...args) {
|
|
const result = await bindings.parseAsync(...args);
|
|
result.program = JSON.parse(result.program);
|
|
return result;
|
|
};
|
|
module.exports.parseSync = function parseSync(...args) {
|
|
const result = bindings.parseSync(...args);
|
|
result.program = JSON.parse(result.program);
|
|
return result;
|
|
};
|