/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/test/message/wasm-function-name-async.js
17 строк
575 B
Michaël Zasso
deps: update V8 to 13.6.233.8
02 май 2025, 16:06
Не верифицирован
02 май 2025, 16:06
918fe04
Код
Авторство
О чём код?
// Copyright 2018 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. d8.file.execute('test/mjsunit/mjsunit.js'); d8.file.execute('test/mjsunit/wasm/wasm-module-builder.js'); var builder = new WasmModuleBuilder(); builder.addFunction('main', kSig_i_v).addBody([kExprUnreachable]).exportFunc(); let buffer = builder.toBuffer(); assertPromiseResult(WebAssembly.instantiate(buffer), pair => { try { pair.instance.exports.main(); } catch (e) { print(e.stack); } });