Skip inlining and emit a warning when trying to inline a function into itself

This commit is contained in:
dcodeIO
2018-07-14 18:01:19 +02:00
parent 3b0fd9aac2
commit 4b8500355a
12 changed files with 52 additions and 9 deletions

View File

@ -54,7 +54,6 @@ import {
import {
ReportMode
} from "./resolver";
import { CommonFlags } from "./common";
/** Compiles a call to a built-in function. */
export function compileCall(
@ -73,7 +72,7 @@ export function compileCall(
ret: ExpressionRef;
// NOTE that some implementations below make use of the select expression where straight-forward.
// whether worth or not should probably be tested once/ it's known if/how embedders handle it.
// whether worth or not should probably be tested once it's known if/how embedders handle it.
// search: createSelect
switch (prototype.internalName) {