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

zh-cn: correct the translation #24264

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TypedArray.of(element0, element1, /* ... ,*/ elementN)

{{jsxref("Array.of()")}} 和 `TypedArray.of()` 之间的一些细微区别:

- 如果传递给 TypedArray.of 的这个值不是构造函数,TypedArray.of 将抛出一个{{jsxref("TypeError")}} ,其中 Array.of 默认创建一个新的 {{jsxref("Array")}}。
- 如果传递给 TypedArray.of 的 `this` 值不是构造函数,TypedArray.of 将抛出一个{{jsxref("TypeError")}} ,其中 Array.of 默认创建一个新的 {{jsxref("Array")}}。
Chebys marked this conversation as resolved.
Show resolved Hide resolved
- `TypedArray.of` 使用 \[\[Put]] 其中 Array.of 使用 \[\[DefineProperty]]。因此,当使用{{jsxref("Proxy")}} 对象时,它调用 {{jsxref("Global_Objects/Proxy/handler/set", "handler.set")}} 创建新的元素,而不是 {{jsxref("Global_Objects/Proxy/handler/defineProperty", "handler.defineProperty")}}。

## 范例
Expand Down