Skip to content

Commit 2dd0dd6

Browse files
committed
Add enumerability to webgpu properties
1 parent 1d203d2 commit 2dd0dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dawn/node/interop/WebGPU.cpp.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Wrappers* Wrappers::instance = nullptr;
166166
InstanceAccessor("size", &W{{$.Name}}::getSize, nullptr),
167167
{{- end}}
168168
{{- range $m := $methods}}
169-
InstanceMethod("{{$m.Name}}", &W{{$.Name}}::{{$m.Name}}, static_cast<napi_property_attributes>(napi_writable | napi_configurable)),
169+
InstanceMethod("{{$m.Name}}", &W{{$.Name}}::{{$m.Name}}, static_cast<napi_property_attributes>(napi_writable | napi_configurable | napi_enumerable)),
170170
{{- end}}
171171
{{- range $a := $attributes}}
172172
{{- if not (HasAnnotation $a "SameObject")}}

0 commit comments

Comments
 (0)