Sha256: 3d95283c374b52bc2e16138e85470857beafee4a2710dfd12dfc70bfd9dc5723

Contents?: true

Size: 394 Bytes

Versions: 29

Compression:

Stored size: 394 Bytes

Contents

function _isNativeReflectConstruct() {
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  if (Reflect.construct.sham) return false;
  if (typeof Proxy === "function") return true;

  try {
    Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
    return true;
  } catch (e) {
    return false;
  }
}

module.exports = _isNativeReflectConstruct;

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-5.0.7 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-5.0.6 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-5.0.5 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-5.0.4 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-5.0.3 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-5.0.2 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-5.0.1 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.3.5 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-5.0.0 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.3.4 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.3.3 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.3.2 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.3.1 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.3 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.2.3 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
tang-0.2.1 spec/tang_app/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.2.2 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.2.1 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.2 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js