Skip to content

Commit 62dc8c3

Browse files
committed
2 parents eabad4d + c1556c1 commit 62dc8c3

11 files changed

+198
-75
lines changed

NOTICE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ under the licensing terms detailed in LICENSE:
2323
* Surma <surma@surma.dev>
2424
* Julien Letellier <letellier.julien@gmail.com>
2525
* Guido Zuidhof <me@guido.io>
26+
* ncave <777696+ncave@users.noreply.github.com>
2627

2728
Portions of this software are derived from third-party works licensed under
2829
the following terms:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
<h2 align="center">Contributors</h2>
2323

2424
<p align="center">
25-
<a href="https://assemblyscript.org/#contributors"><img src="https://assemblyscript.org/contributors.svg" alt="Contributor logos" /></a>
25+
<a href="https://assemblyscript.org/#contributors"><img src="https://assemblyscript.org/contributors.svg" alt="Contributor logos" width="720" /></a>
2626
</p>
2727

2828
<h2 align="center">Thanks to our sponsors!</h2>
2929

3030
<p align="justify">Most of the core team members and most contributors do this open source work in their free time. If you use AssemblyScript for a serious task or plan to do so, and you'd like us to invest more time on it, <a href="https://opencollective.com/assemblyscript/donate" target="_blank" rel="noopener">please donate</a> to our <a href="https://opencollective.com/assemblyscript" target="_blank" rel="noopener">OpenCollective</a>. By sponsoring this project, your logo will show up below. Thank you so much for your support!</p>
3131

3232
<p align="center">
33-
<a href="https://assemblyscript.org/#sponsors"><img src="https://assemblyscript.org/sponsors.svg" alt="Sponsor logos" /></a>
33+
<a href="https://assemblyscript.org/#sponsors"><img src="https://assemblyscript.org/sponsors.svg" alt="Sponsor logos" width="720" /></a>
3434
</p>

bin/asinit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ function ensureIndexJs() {
316316
fs.writeFileSync(indexFile, [
317317
"const fs = require(\"fs\");",
318318
"const loader = require(\"@assemblyscript/loader\");",
319-
"module.exports = loader.instantiateSync(fs.readFileSync(__dirname + \"/build/optimized.wasm\"), { /* imports */ })"
319+
"const imports = { /* imports go here */ };",
320+
"const wasmModule = loader.instantiateSync(fs.readFileSync(__dirname + \"/build/optimized.wasm\"), imports);",
321+
"module.exports = wasmModule.exports;"
320322
].join("\n") + "\n");
321323
console.log(colors.green(" Created: ") + indexFile);
322324
} else {

src/common.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,23 @@ export enum CommonFlags {
6262
RESOLVED = 1 << 21,
6363
/** Is compiled. */
6464
COMPILED = 1 << 22,
65+
/** Did error. */
66+
ERRORED = 1 << 23,
6567
/** Has a constant value and is therefore inlined. */
66-
INLINED = 1 << 23,
68+
INLINED = 1 << 24,
6769
/** Is scoped. */
68-
SCOPED = 1 << 24,
70+
SCOPED = 1 << 25,
6971
/** Is a stub. */
70-
STUB = 1 << 25,
72+
STUB = 1 << 26,
7173
/** Is a virtual method. */
72-
VIRTUAL = 1 << 26,
74+
VIRTUAL = 1 << 27,
7375
/** Is (part of) a closure. */
74-
IN_SCOPE_CLOSURE = 1 << 27,
76+
IN_SCOPE_CLOSURE = 1 << 28,
7577

7678
// Other
7779

7880
/** Is quoted. */
79-
QUOTED = 1 << 28
81+
QUOTED = 1 << 29
8082
}
8183

8284
/** Path delimiter inserted between file system levels. */

0 commit comments

Comments
 (0)