@@ -220,13 +220,6 @@ module.exports = function() {
220220
221221 // Other APIs / Web Compatibility
222222 Console . prototype ,
223- WebAssembly . Module . prototype ,
224- WebAssembly . Instance . prototype ,
225- WebAssembly . Table . prototype ,
226- WebAssembly . Memory . prototype ,
227- WebAssembly . CompileError . prototype ,
228- WebAssembly . LinkError . prototype ,
229- WebAssembly . RuntimeError . prototype ,
230223 ] ;
231224 const intrinsics = [
232225 // 10.2.4.1 ThrowTypeError
@@ -349,14 +342,26 @@ module.exports = function() {
349342 setInterval ,
350343 setTimeout ,
351344 console ,
352- WebAssembly ,
353345 ] ;
354346
355347 if ( typeof SharedArrayBuffer !== 'undefined' ) { // 25.2
356348 ArrayPrototypePush ( intrinsicPrototypes , SharedArrayBuffer . prototype ) ;
357349 ArrayPrototypePush ( intrinsics , SharedArrayBuffer ) ;
358350 }
359351
352+ if ( typeof WebAssembly !== 'undefined' ) {
353+ ArrayPrototypePush ( intrinsicPrototypes ,
354+ WebAssembly . Module . prototype ,
355+ WebAssembly . Instance . prototype ,
356+ WebAssembly . Table . prototype ,
357+ WebAssembly . Memory . prototype ,
358+ WebAssembly . CompileError . prototype ,
359+ WebAssembly . LinkError . prototype ,
360+ WebAssembly . RuntimeError . prototype ,
361+ ) ;
362+ ArrayPrototypePush ( intrinsics , WebAssembly ) ;
363+ }
364+
360365 if ( typeof Intl !== 'undefined' ) {
361366 ArrayPrototypePush ( intrinsicPrototypes ,
362367 Intl . Collator . prototype ,
0 commit comments