test(platform-browser): add supportsRegExUnicodeFlag method (#20819)

PR Close #20819
This commit is contained in:
Huáng Jùnliàng 2017-12-06 22:29:20 +08:00 committed by Igor Minar
parent 3c34b8b4f1
commit dde1d67232
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ export class BrowserDetection {
return (typeof(document as any).registerElement !== 'undefined');
}
get supportsRegExUnicodeFlag(): boolean { return RegExp.prototype.hasOwnProperty('unicode'); }
get supportsShadowDom() {
const testEl = document.createElement('div');
return (typeof testEl.attachShadow !== 'undefined');