fix: fix clang errors

This commit is contained in:
Jeff Cross
2015-05-28 11:08:26 -07:00
parent 9d90128463
commit 01fb8e6635
5 changed files with 23 additions and 24 deletions

View File

@ -2,7 +2,7 @@ var _global: BrowserNodeGlobal = <any>(typeof window === 'undefined' ? global :
export {_global as global};
export var Type = Function;
export type Type = new (... args: any[]) => any;
export type Type = new (...args: any[]) => any;
export class BaseException extends Error {
message;
@ -116,7 +116,7 @@ export class StringWrapper {
}
static replaceAllMapped(s: string, from: RegExp, cb: Function): string {
return s.replace(from, function(... matches) {
return s.replace(from, function(...matches) {
// Remove offset & string from the result array
matches.splice(-2, 2);
// The callback receives match, p1, ..., pn