More std array

This commit is contained in:
dcodeIO
2018-01-14 21:17:43 +01:00
parent 827bb4afe8
commit 49d29fc9f2
13 changed files with 1149 additions and 313 deletions

View File

@ -2469,7 +2469,7 @@ export class Compiler extends DiagnosticEmitter {
} else { // too few arguments
this.error(DiagnosticCode.Expected_at_least_0_arguments_but_got_1, reportNode.range,
(operandIndex + numParametersInclThis - numParameters).toString(10),
(operandIndex + numParameters - numParametersInclThis).toString(10),
numArguments.toString(10)
);
return this.module.createUnreachable();
@ -2686,7 +2686,7 @@ export class Compiler extends DiagnosticEmitter {
case ElementKind.PROPERTY: // instance property (here: getter)
var getter = (<Property>element).getterPrototype;
assert(getter != null);
var getterInstance = (<FunctionPrototype>getter).resolve(); // reports
var getterInstance = (<FunctionPrototype>getter).resolve(null); // reports
if (!getterInstance)
return this.module.createUnreachable();
assert(getterInstance.parameters.length == 0);