Closed rossm6 closed 1 year ago
I checked the generated AST by jsep and confirmed the issue:
{
"type": "NewExpression",
"arguments": [
{
"type": "CallExpression", // not NewExpression
"arguments": [
{
"type": "BinaryExpression",
"operator": "-",
"left": {
"type": "CallExpression", // not NewExpression
"arguments": [],
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "NewExpression", // not CallExpression
"arguments": [],
"callee": {
"type": "Identifier",
"name": "Date"
}
},
"property": {
"type": "Identifier",
"name": "getDate"
}
}
},
"right": {
"type": "Literal",
"value": 5,
"raw": "5"
}
}
],
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "NewExpression", // not CallExpression
"arguments": [],
"callee": {
"type": "Identifier",
"name": "Date"
}
},
"property": {
"type": "Identifier",
"name": "setDate"
}
}
}
],
"callee": {
"type": "Identifier",
"name": "Date"
}
}
Hi. Is there an update on this?
:tada: This issue has been resolved in version @jsep-plugin/new-v1.0.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Thanks for the quick fix
This does not work -
P.S. I have the "new" keyword plugin added (which is why it gets passed)