()
| 722 | |
| 723 | let internalGlobal; |
| 724 | function getInternalGlobal() { |
| 725 | if (internalGlobal == null) { |
| 726 | // Lazy-load to avoid a circular dependency. |
| 727 | const { runInNewContext } = require('vm'); |
| 728 | internalGlobal = runInNewContext('this', undefined, { contextName: 'internal' }); |
| 729 | } |
| 730 | return internalGlobal; |
| 731 | } |
| 732 | |
| 733 | function SideEffectFreeRegExpPrototypeExec(regex, string) { |
| 734 | const { RegExp: RegExpFromAnotherRealm } = getInternalGlobal(); |
no test coverage detected
searching dependent graphs…