Fix this in harness and improve gulpfile defaults

This commit is contained in:
Nathan Shively-Sanders 2016-07-11 09:30:58 -07:00
parent b543074861
commit cf15e825ee
2 changed files with 4 additions and 1 deletions

View File

@ -306,6 +306,9 @@ function needsUpdate(source: string | string[], dest: string | string[]): boolea
function getCompilerSettings(base: tsc.Settings, useBuiltCompiler?: boolean): tsc.Settings {
const copy: tsc.Settings = {};
// TODO: Add --noImplicitThis --types --pretty when gulp-typescript adds support for them
copy.noImplicitAny = true;
copy.noEmitOnError = true;
for (const key in base) {
copy[key] = base[key];
}

View File

@ -127,7 +127,7 @@ namespace Utils {
export function memoize<T extends Function>(f: T): T {
const cache: { [idx: string]: any } = {};
return <any>(function() {
return <any>(function(this: any) {
const key = Array.prototype.join.call(arguments);
const cachedResult = cache[key];
if (cachedResult) {