| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 63aa27d commit 562947e
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -220,13 +220,6 @@ module.exports = function() { | |||
| 220 | 220 | ||
| 221 | 221 | // Other APIs / Web Compatibility | |
| 222 | 222 | 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, | ||
| 230 | 223 | ]; | |
| 231 | 224 | const intrinsics = [ | |
| 232 | 225 | // 10.2.4.1 ThrowTypeError | |
@@ -349,14 +342,26 @@ module.exports = function() { | |||
| 349 | 342 | setInterval, | |
| 350 | 343 | setTimeout, | |
| 351 | 344 | console, | |
| 352 | - WebAssembly, | ||
| 353 | 345 | ]; | |
| 354 | 346 | ||
| 355 | 347 | if (typeof SharedArrayBuffer !== 'undefined') { // 25.2 | |
| 356 | 348 | ArrayPrototypePush(intrinsicPrototypes, SharedArrayBuffer.prototype); | |
| 357 | 349 | ArrayPrototypePush(intrinsics, SharedArrayBuffer); | |
| 358 | 350 | } | |
| 359 | 351 | ||
| 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 | + | ||
| 360 | 365 | if (typeof Intl !== 'undefined') { | |
| 361 | 366 | ArrayPrototypePush(intrinsicPrototypes, | |
| 362 | 367 | Intl.Collator.prototype, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - // Flags: --frozen-intrinsics | ||
| 1 | + // Flags: --frozen-intrinsics --jitless | ||
| 2 | 2 | 'use strict'; | |
| 3 | 3 | require('../common'); | |
| 4 | 4 | const assert = require('assert'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments