Add a simple UTF8 converter, i.e. for calling C++ APIs; Fix disabling 'abort' entirely

This commit is contained in:
dcodeIO
2018-05-21 23:14:47 +02:00
parent 73417a9a06
commit ea0eb7f1a5
13 changed files with 1733 additions and 10 deletions

View File

@ -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);