mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-26 21:23:53 -06:00
Fix this in harness and improve gulpfile defaults
This commit is contained in:
parent
b543074861
commit
cf15e825ee
@ -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];
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user