2020-02-18 08:41:57 +00:00
|
|
|
// Copyright 2020 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
// Flags: --allow-natives-syntax
|
2022-02-07 14:53:20 +00:00
|
|
|
// Files: tools/clusterfuzz/foozzie/v8_mock.js
|
|
|
|
// Files: tools/clusterfuzz/foozzie/v8_mock_webassembly.js
|
2020-02-18 08:41:57 +00:00
|
|
|
|
|
|
|
// Test foozzie webassembly-specfific mocks for differential fuzzing.
|
|
|
|
|
|
|
|
// No reference errors when accessing WebAssembly.
|
|
|
|
WebAssembly[0];
|
|
|
|
WebAssembly[" "];
|
|
|
|
WebAssembly.foo;
|
|
|
|
WebAssembly.foo();
|
|
|
|
WebAssembly.foo().bar;
|
|
|
|
WebAssembly.foo().bar();
|
|
|
|
WebAssembly.foo().bar[0];
|