mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-10-20 18:56:17 +00:00
Move @parity/resolc from js-revive (#296)
- Move npm package from paritytech/js-revive - Rename package to `@parity/resolc`
This commit is contained in:
1 parent
f6a412eef4
commit
e07d0f0cb7
49 files changed
+940
-75
No files matched your search
@@ -0,0 +1,14 @@
|
||||
importScripts("./resolc_web.js");
|
||||
|
||||
// Handle messages from the main thread
|
||||
onmessage = async function (e) {
|
||||
const m = createRevive();
|
||||
|
||||
// Set input data for stdin
|
||||
m.writeToStdin(e.data);
|
||||
|
||||
// Compile the Solidity source code
|
||||
m.callMain(["--standard-json"]);
|
||||
|
||||
postMessage({ output: m.readFromStdout() || m.readFromStderr() });
|
||||
};
|
||||
Reference in new issue
Block a user