/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/test/mjsunit/wasm/verify-module-basic-errors.js
16 строк
806 B
Michaël Zasso
deps: update V8 to 13.6.233.8
02 май 2025, 16:06
Не верифицирован
02 май 2025, 16:06
918fe04
Код
Авторство
О чём код?
// Copyright 2015 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. function Foo() { } assertThrows(function() { new WebAssembly.Module(); }) assertThrows(function() { new WebAssembly.Module(0); }) assertThrows(function() { new WebAssembly.Module("s"); }) assertThrows(function() { new WebAssembly.Module(undefined); }) assertThrows(function() { new WebAssembly.Module(1.1); }) assertThrows(function() { new WebAssembly.Module(1/0); }) assertThrows(function() { new WebAssembly.Module(null); }) assertThrows(function() { new WebAssembly.Module(new Foo()); }) assertThrows(function() { new WebAssembly.Module(new ArrayBuffer(0)); }) assertThrows(function() { new WebAssembly.Module(new ArrayBuffer(7)); })