Skip to content

Commit

Permalink
Add enumerability to webgpu properties
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanSawe committed Sep 10, 2024
1 parent 0ae5730 commit 1f15ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dawn/node/interop/WebGPU.cpp.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Wrappers* Wrappers::instance = nullptr;
InstanceMethod("keys", &W{{$.Name}}::keys),
{{- end}}
{{- range $m := $methods}}
InstanceMethod("{{$m.Name}}", &W{{$.Name}}::{{$m.Name}}, static_cast<napi_property_attributes>(napi_writable | napi_configurable)),
InstanceMethod("{{$m.Name}}", &W{{$.Name}}::{{$m.Name}}, static_cast<napi_property_attributes>(napi_writable | napi_configurable | napi_enumerable)),
{{- end}}
{{- range $a := $attributes}}
{{- if not (HasAnnotation $a "SameObject")}}
Expand Down

0 comments on commit 1f15ed9

Please sign in to comment.