Skip to content

Commit 1f15ed9

Browse files
committed
Add enumerability to webgpu properties
1 parent 0ae5730 commit 1f15ed9

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
@@ -151,7 +151,7 @@ Wrappers* Wrappers::instance = nullptr;
151151
InstanceMethod("keys", &W{{$.Name}}::keys),
152152
{{- end}}
153153
{{- range $m := $methods}}
154-
InstanceMethod("{{$m.Name}}", &W{{$.Name}}::{{$m.Name}}, static_cast<napi_property_attributes>(napi_writable | napi_configurable)),
154+
InstanceMethod("{{$m.Name}}", &W{{$.Name}}::{{$m.Name}}, static_cast<napi_property_attributes>(napi_writable | napi_configurable | napi_enumerable)),
155155
{{- end}}
156156
{{- range $a := $attributes}}
157157
{{- if not (HasAnnotation $a "SameObject")}}

0 commit comments

Comments
 (0)