Last change
on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
477 bytes
|
Line | |
---|
1 | function _isNativeReflectConstruct() {
|
---|
2 | if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
---|
3 | if (Reflect.construct.sham) return false;
|
---|
4 | if (typeof Proxy === "function") return true;
|
---|
5 |
|
---|
6 | try {
|
---|
7 | Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
---|
8 | return true;
|
---|
9 | } catch (e) {
|
---|
10 | return false;
|
---|
11 | }
|
---|
12 | }
|
---|
13 |
|
---|
14 | module.exports = _isNativeReflectConstruct;
|
---|
15 | module.exports["default"] = module.exports, module.exports.__esModule = true; |
---|
Note:
See
TracBrowser
for help on using the repository browser.