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
trusty-cms-4.1.9 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.1.8 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
tang-0.2.0 spec/tang_app/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.1.7 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
tang-0.1.0 spec/tang_app/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
tang-0.0.9 spec/tang_app/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.1.6 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
trusty-cms-4.1.5 node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
condenser-0.3 lib/condenser/processors/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js