Make sure that contextual type arguments are passed when resolving the target of a new expression; Fix decoding of UTF8 strings with more than two code units in the Binaryen interface

This commit is contained in:
dcodeIO
2018-04-22 00:17:14 +02:00
parent bde13b12cf
commit 05117f9ee3
4 changed files with 5 additions and 3 deletions

View File

@ -5847,7 +5847,7 @@ export class Compiler extends DiagnosticEmitter {
var classPrototype = <ClassPrototype>target;
var classInstance = classPrototype.resolveUsingTypeArguments( // reports
expression.typeArguments,
null,
currentFunction.flow.contextualTypeArguments,
expression
);
if (!classInstance) return module.createUnreachable();