Skip to content

Commit cf15e82

Browse files
committed
Fix this in harness and improve gulpfile defaults
1 parent b543074 commit cf15e82

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Gulpfile.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ function needsUpdate(source: string | string[], dest: string | string[]): boolea
306306

307307
function getCompilerSettings(base: tsc.Settings, useBuiltCompiler?: boolean): tsc.Settings {
308308
const copy: tsc.Settings = {};
309+
// TODO: Add --noImplicitThis --types --pretty when gulp-typescript adds support for them
310+
copy.noImplicitAny = true;
311+
copy.noEmitOnError = true;
309312
for (const key in base) {
310313
copy[key] = base[key];
311314
}

src/harness/harness.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ namespace Utils {
127127
export function memoize<T extends Function>(f: T): T {
128128
const cache: { [idx: string]: any } = {};
129129

130-
return <any>(function() {
130+
return <any>(function(this: any) {
131131
const key = Array.prototype.join.call(arguments);
132132
const cachedResult = cache[key];
133133
if (cachedResult) {

0 commit comments

Comments
 (0)