test(platform-browser): add supportsRegExUnicodeFlag method (#20819)
PR Close #20819
This commit is contained in:
parent
3c34b8b4f1
commit
dde1d67232
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue