fix(core): fix inheritance in JIT mode for TS 2.1 (#15599)

Fixes #15502
This commit is contained in:
Tobias Bosch
2017-03-29 16:14:51 -07:00
committed by Victor Berchet
parent a9321b1387
commit 14fd78fd85
2 changed files with 23 additions and 2 deletions

View File

@ -14,8 +14,7 @@ import {GetterFn, MethodFn, SetterFn} from './types';
/**
* Attention: This regex has to hold even if the code is minified!
*/
export const DELEGATE_CTOR =
/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?(\S+\s+!==\s+null\s+&&\s+)?\S+\.apply\(this,\s*arguments\)/;
export const DELEGATE_CTOR = /^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/;
export class ReflectionCapabilities implements PlatformReflectionCapabilities {
private _reflect: any;