wasm-micro-runtime/test-tools/wamr-ide/VSCode-Extension/resource/webview/js/configbuildtarget.js
Wang Ning 679a8ab3cb
Perfect the codebase for wamr-ide (#1817)
Fix errors and warnings reported by eslint
Add CONTRIBUTING document for vscode-extension
2022-12-27 15:04:36 +08:00

28 lines
881 B
JavaScript

/*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/
const vscode = acquireVsCodeApi();
document.getElementById('btn_submit').onclick = () => {
submitFunc();
};
function submitFunc() {
let outputFileName = document.getElementById('output_file_name').value;
let initMemSize = document.getElementById('initial_mem_size').value;
let maxMemSize = document.getElementById('max_mem_size').value;
let stackSize = document.getElementById('stack_size').value;
let exportedSymbols = document.getElementById('exported_symbols').value;
vscode.postMessage({
command: 'config_build_target',
outputFileName: outputFileName,
initMemSize: initMemSize,
maxMemSize: maxMemSize,
stackSize: stackSize,
exportedSymbols: exportedSymbols,
});
}