|
19 | 19 | // https://github.com/google/caja/blob/master/src/com/google/caja/ses/repairES5.js
|
20 | 20 | // https://github.com/tc39/proposal-ses/blob/e5271cc42a257a05dcae2fd94713ed2f46c08620/shim/src/freeze.js
|
21 | 21 |
|
22 |
| -/* global WebAssembly, SharedArrayBuffer, console */ |
| 22 | +/* global SharedArrayBuffer, console */ |
23 | 23 | 'use strict';
|
24 | 24 |
|
25 | 25 | const {
|
@@ -107,6 +107,14 @@ const {
|
107 | 107 | WeakMapPrototype,
|
108 | 108 | WeakSet,
|
109 | 109 | WeakSetPrototype,
|
| 110 | + WebAssembly, |
| 111 | + WebAssemblyModulePrototype, |
| 112 | + WebAssemblyInstancePrototype, |
| 113 | + WebAssemblyTablePrototype, |
| 114 | + WebAssemblyMemoryPrototype, |
| 115 | + WebAssemblyCompileErrorPrototype, |
| 116 | + WebAssemblyLinkErrorPrototype, |
| 117 | + WebAssemblyRuntimeErrorPrototype, |
110 | 118 | } = primordials;
|
111 | 119 |
|
112 | 120 | module.exports = function() {
|
@@ -192,13 +200,13 @@ module.exports = function() {
|
192 | 200 | // Other APIs / Web Compatibility
|
193 | 201 | console.Console.prototype,
|
194 | 202 | BigIntPrototype,
|
195 |
| - WebAssembly.Module.prototype, |
196 |
| - WebAssembly.Instance.prototype, |
197 |
| - WebAssembly.Table.prototype, |
198 |
| - WebAssembly.Memory.prototype, |
199 |
| - WebAssembly.CompileError.prototype, |
200 |
| - WebAssembly.LinkError.prototype, |
201 |
| - WebAssembly.RuntimeError.prototype, |
| 203 | + WebAssemblyModulePrototype, |
| 204 | + WebAssemblyInstancePrototype, |
| 205 | + WebAssemblyTablePrototype, |
| 206 | + WebAssemblyMemoryPrototype, |
| 207 | + WebAssemblyCompileErrorPrototype, |
| 208 | + WebAssemblyLinkErrorPrototype, |
| 209 | + WebAssemblyRuntimeErrorPrototype, |
202 | 210 | SharedArrayBuffer.prototype
|
203 | 211 | ];
|
204 | 212 | const intrinsics = [
|
|
0 commit comments