mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-18 01:11:32 +00:00
Add a simple UTF8 converter, i.e. for calling C++ APIs; Fix disabling 'abort' entirely
This commit is contained in:
@ -416,7 +416,7 @@ export class Program extends DiagnosticEmitter {
|
||||
var globalAliases = options.globalAliases;
|
||||
if (globalAliases) {
|
||||
for (let [alias, name] of globalAliases) {
|
||||
if (!alias.length) continue; // explicitly disabled
|
||||
if (!name.length) continue; // explicitly disabled
|
||||
let element = this.elementsLookup.get(name);
|
||||
if (element) this.elementsLookup.set(alias, element);
|
||||
else throw new Error("element not found: " + name);
|
||||
|
Reference in New Issue
Block a user