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

Add a assert method #2

Open
djyde opened this issue Nov 7, 2017 · 0 comments
Open

Add a assert method #2

djyde opened this issue Nov 7, 2017 · 0 comments

Comments

@djyde
Copy link
Member

djyde commented Nov 7, 2017

用于检验参数完整性:

* offline({ itemId, readyState }) {
  this.assert([ itemId, readyState ]);
}

其中一个如果不存在,则抛出 jsonrpc 的参数错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant