@@ -66,10 +66,6 @@ test(() => {
6666 assert_throws_js ( RangeError , ( ) => new WebAssembly . Memory ( { "initial" : 10 , "maximum" : 9 } ) ) ;
6767} , "Initial value exceeds maximum" ) ;
6868
69- test ( ( ) => {
70- assert_throws ( new TypeError ( ) , ( ) => new WebAssembly . Memory ( { "initial" : 10 , "shared" : true } ) ) ;
71- } , "Shared memory without maximum" ) ;
72-
7369test ( ( ) => {
7470 const proxy = new Proxy ( { } , {
7571 has ( o , x ) {
@@ -124,47 +120,6 @@ test(() => {
124120 ] ) ;
125121} , "Order of evaluation for descriptor" ) ;
126122
127- test ( t => {
128- const order = [ ] ;
129-
130- new WebAssembly . Memory ( {
131- get maximum ( ) {
132- order . push ( "maximum" ) ;
133- return {
134- valueOf ( ) {
135- order . push ( "maximum valueOf" ) ;
136- return 1 ;
137- } ,
138- } ;
139- } ,
140-
141- get initial ( ) {
142- order . push ( "initial" ) ;
143- return {
144- valueOf ( ) {
145- order . push ( "initial valueOf" ) ;
146- return 1 ;
147- } ,
148- } ;
149- } ,
150-
151- get shared ( ) {
152- order . push ( "shared" ) ;
153- return {
154- valueOf : t . unreached_func ( "should not call shared valueOf" ) ,
155- } ;
156- } ,
157- } ) ;
158-
159- assert_array_equals ( order , [
160- "initial" ,
161- "initial valueOf" ,
162- "maximum" ,
163- "maximum valueOf" ,
164- "shared" ,
165- ] ) ;
166- } , "Order of evaluation for descriptor (with shared)" ) ;
167-
168123test ( ( ) => {
169124 const argument = { "initial" : 0 } ;
170125 const memory = new WebAssembly . Memory ( argument ) ;
@@ -182,9 +137,3 @@ test(() => {
182137 const memory = new WebAssembly . Memory ( argument , { } ) ;
183138 assert_Memory ( memory , { "size" : 0 } ) ;
184139} , "Stray argument" ) ;
185-
186- test ( ( ) => {
187- const argument = { "initial" : 4 , "maximum" : 10 , shared : true } ;
188- const memory = new WebAssembly . Memory ( argument ) ;
189- assert_Memory ( memory , { "size" : 4 , "shared" : true } ) ;
190- } , "Shared memory" ) ;
0 commit comments