Bug 252349 - [Wasm-GC] Allow GC types in globals
Summary: [Wasm-GC] Allow GC types in globals
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebAssembly (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Asumu Takikawa
URL:
Keywords: InRadar
Depends on:
Blocks: 247394 253029
  Show dependency treegraph
 
Reported: 2023-02-15 14:49 PST by Tim Chevalier
Modified: 2023-12-12 10:51 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Chevalier 2023-02-15 14:49:52 PST
The following is rejected currently:

```
(module
  (type $vec (array f32))
  (global (ref $vec) (array.new_canon $vec (f32.const 1) (i32.const 3))))
```

Constant expressions with array or struct types should be allowed to appear as global initializers.
Comment 1 Radar WebKit Bug Importer 2023-02-22 14:50:21 PST
<rdar://problem/105800529>
Comment 2 Asumu Takikawa 2023-12-12 10:51:31 PST
Closing as this has been fixed already by https://github.com/WebKit/WebKit/pull/17230