Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

扩展结构的无法替换 #222

Open
chriswenwu opened this issue May 19, 2023 · 0 comments
Open

扩展结构的无法替换 #222

chriswenwu opened this issue May 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@chriswenwu
Copy link

版本: "gogocode": "^1.0.55",
demo:
const vc = { d: 1 };
const code = "const a = {vc}";
const ast = $(code);
ast.replace("{vc}", "{...vc}");
console.log(ast.generate());
描述: ast.replace("vc", "...vc"); 这样操作替换直接报错, demo的操作没有任何改变

@chriswenwu chriswenwu added the bug Something isn't working label May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant