提交 2b7b1548 编写于 作者: L l30043718 提交者: Lixiaoying25

fixed ab3ab43b from https://gitee.com/lixiaoying25/docs/pulls/18456

Description:sample code modifications
Feature or Bugfix:sample code modifications
Binary Source: No
Signed-off-by: NLixiaoying25 <lixiaoying25@huawei.com>
上级 011e3de2
......@@ -6821,8 +6821,8 @@ unregisterDeathRecipient(recipient: DeathRecipient, flags: number): void
}
let deathRecipient = new MyDeathRecipient();
try {
proxy.registerDeathRecippient(deathRecipient, 0);
proxy.unregisterDeathRecippient(deathRecipient, 0);
proxy.registerDeathRecipient(deathRecipient, 0);
proxy.unregisterDeathRecipient(deathRecipient, 0);
} catch(error) {
console.info("proxy register deathRecipient fail, errorCode " + error.code);
console.info("proxy register deathRecipient fail, errorMessage " + error.message);
......@@ -6893,7 +6893,7 @@ removeDeathRecipient(recipient: DeathRecipient, flags: number): boolean
}
}
let deathRecipient = new MyDeathRecipient();
proxy.addDeathRecippient(deathRecipient, 0);
proxy.addDeathRecipient(deathRecipient, 0);
proxy.removeDeathRecipient(deathRecipient, 0);
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册