@nubjs/nub-darwin-x64 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/nub +0 -0
- package/bin/nubx +0 -0
- package/package.json +2 -3
- package/runtime/addons/nub-native.node +0 -0
- package/runtime/cache-evict.mjs +0 -69
- package/runtime/compile-cache-restore.mjs +0 -21
- package/runtime/floor-builtin.mjs +0 -57
- package/runtime/navigator-locks.mjs +0 -242
- package/runtime/navigator-shim.mjs +0 -144
- package/runtime/node_modules/@js-temporal/polyfill/CHANGELOG.md +0 -453
- package/runtime/node_modules/@js-temporal/polyfill/LICENSE +0 -13
- package/runtime/node_modules/@js-temporal/polyfill/README.md +0 -90
- package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs +0 -2
- package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs.map +0 -1
- package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js +0 -2
- package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js.map +0 -1
- package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js +0 -2
- package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js.map +0 -1
- package/runtime/node_modules/@js-temporal/polyfill/index.d.cts +0 -1215
- package/runtime/node_modules/@js-temporal/polyfill/index.d.ts +0 -1215
- package/runtime/node_modules/@js-temporal/polyfill/lib/assert.ts +0 -8
- package/runtime/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +0 -39
- package/runtime/node_modules/@js-temporal/polyfill/lib/calendar.ts +0 -2424
- package/runtime/node_modules/@js-temporal/polyfill/lib/debug.ts +0 -7
- package/runtime/node_modules/@js-temporal/polyfill/lib/duration.ts +0 -438
- package/runtime/node_modules/@js-temporal/polyfill/lib/durationformat.d.ts +0 -93
- package/runtime/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +0 -4973
- package/runtime/node_modules/@js-temporal/polyfill/lib/index.ts +0 -34
- package/runtime/node_modules/@js-temporal/polyfill/lib/init.ts +0 -43
- package/runtime/node_modules/@js-temporal/polyfill/lib/instant.ts +0 -138
- package/runtime/node_modules/@js-temporal/polyfill/lib/internaltypes.d.ts +0 -242
- package/runtime/node_modules/@js-temporal/polyfill/lib/intl.ts +0 -758
- package/runtime/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +0 -162
- package/runtime/node_modules/@js-temporal/polyfill/lib/legacydate.ts +0 -17
- package/runtime/node_modules/@js-temporal/polyfill/lib/math.ts +0 -96
- package/runtime/node_modules/@js-temporal/polyfill/lib/now.ts +0 -48
- package/runtime/node_modules/@js-temporal/polyfill/lib/plaindate.ts +0 -212
- package/runtime/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +0 -274
- package/runtime/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +0 -110
- package/runtime/node_modules/@js-temporal/polyfill/lib/plaintime.ts +0 -154
- package/runtime/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +0 -157
- package/runtime/node_modules/@js-temporal/polyfill/lib/regex.ts +0 -59
- package/runtime/node_modules/@js-temporal/polyfill/lib/slots.ts +0 -341
- package/runtime/node_modules/@js-temporal/polyfill/lib/temporal.ts +0 -10
- package/runtime/node_modules/@js-temporal/polyfill/lib/timeduration.ts +0 -149
- package/runtime/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +0 -492
- package/runtime/node_modules/@js-temporal/polyfill/package.json +0 -143
- package/runtime/node_modules/@oxc-project/runtime/CHANGELOG.md +0 -88
- package/runtime/node_modules/@oxc-project/runtime/LICENSE +0 -22
- package/runtime/node_modules/@oxc-project/runtime/README.md +0 -5
- package/runtime/node_modules/@oxc-project/runtime/package.json +0 -1066
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/AwaitValue.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecoratedDescriptor.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs.js +0 -236
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203.js +0 -184
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203R.js +0 -191
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2301.js +0 -222
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2305.js +0 -133
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2311.js +0 -124
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayLikeToArray.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithHoles.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithoutHoles.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertClassBrand.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertThisInitialized.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncGeneratorDelegate.js +0 -24
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js +0 -45
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncToGenerator.js +0 -26
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/callSuper.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkInRHS.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkPrivateRedeclaration.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorDestructureSet.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorGet.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorSet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCallCheck.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticAccess.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticFieldDescriptor.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classExtractFieldDescriptor.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classNameTDZError.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldDestructureSet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet2.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldInitSpec.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseBase.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseKey.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet2.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateGetter.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodGet.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodInitSpec.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodSet.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateSetter.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldDestructureSet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecGet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecSet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodGet.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodSet.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/construct.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/createClass.js +0 -13
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelper.js +0 -50
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelperLoose.js +0 -19
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/createSuper.js +0 -16
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorate.js +0 -23
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateMetadata.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateParam.js +0 -11
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/defaults.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineAccessor.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineEnumerableProperties.js +0 -12
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/dispose.js +0 -28
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/AwaitValue.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/OverloadYield.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecoratedDescriptor.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs.js +0 -236
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203.js +0 -184
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203R.js +0 -191
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2301.js +0 -222
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2305.js +0 -133
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2311.js +0 -124
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayLikeToArray.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithHoles.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithoutHoles.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertClassBrand.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertThisInitialized.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncGeneratorDelegate.js +0 -24
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncIterator.js +0 -45
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncToGenerator.js +0 -26
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/awaitAsyncGenerator.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/callSuper.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkInRHS.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkPrivateRedeclaration.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorDestructureSet.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorGet.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorSet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCallCheck.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticAccess.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classExtractFieldDescriptor.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classNameTDZError.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldDestructureSet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet2.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldInitSpec.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseBase.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseKey.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet2.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateGetter.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodGet.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodInitSpec.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodSet.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateSetter.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldDestructureSet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecGet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecSet.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodGet.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodSet.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/construct.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createClass.js +0 -13
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelper.js +0 -50
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelperLoose.js +0 -19
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createSuper.js +0 -16
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorate.js +0 -21
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateMetadata.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateParam.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defaults.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineAccessor.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineEnumerableProperties.js +0 -12
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineProperty.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/dispose.js +0 -28
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/extends.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/get.js +0 -11
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/getPrototypeOf.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/identity.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/importDeferProxy.js +0 -27
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inherits.js +0 -14
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inheritsLoose.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerDefineProperty.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerWarningHelper.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/instanceof.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireDefault.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireWildcard.js +0 -27
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeFunction.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeReflectConstruct.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArray.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArrayLimit.js +0 -28
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/jsx.js +0 -22
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/maybeArrayLike.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/newArrowCheck.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableRest.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableSpread.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nullishReceiverError.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectDestructuringEmpty.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread.js +0 -14
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread2.js +0 -23
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutProperties.js +0 -13
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutPropertiesLoose.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/package.json +0 -3
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/possibleConstructorReturn.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/readOnlyError.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/regeneratorRuntime.js +0 -304
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/set.js +0 -22
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setFunctionName.js +0 -12
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setPrototypeOf.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/skipFirstGeneratorNext.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/slicedToArray.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropBase.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropGet.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropSet.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteral.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteralLoose.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/tdz.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalRef.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalUndefined.js +0 -2
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toArray.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toConsumableArray.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPrimitive.js +0 -12
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPropertyKey.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toSetter.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/typeof.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/unsupportedIterableToArray.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/using.js +0 -12
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/usingCtx.js +0 -59
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapAsyncGenerator.js +0 -69
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapNativeSuper.js +0 -27
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapRegExp.js +0 -51
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/writeOnlyError.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/extends.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/get.js +0 -11
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/getPrototypeOf.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/identity.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/importDeferProxy.js +0 -27
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/inherits.js +0 -14
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/inheritsLoose.js +0 -5
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerDefineProperty.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerWarningHelper.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/instanceof.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireDefault.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireWildcard.js +0 -27
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeFunction.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeReflectConstruct.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArray.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArrayLimit.js +0 -28
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/jsx.js +0 -22
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/maybeArrayLike.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/newArrowCheck.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableRest.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableSpread.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/nullishReceiverError.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectDestructuringEmpty.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread.js +0 -14
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js +0 -23
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js +0 -13
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/possibleConstructorReturn.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/readOnlyError.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/regeneratorRuntime.js +0 -304
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/set.js +0 -22
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/setFunctionName.js +0 -12
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/setPrototypeOf.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/skipFirstGeneratorNext.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/slicedToArray.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropBase.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropGet.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropSet.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteral.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteralLoose.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/tdz.js +0 -4
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalRef.js +0 -6
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalUndefined.js +0 -2
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/toArray.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/toConsumableArray.js +0 -8
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js +0 -12
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js +0 -7
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/toSetter.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/typeof.js +0 -10
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/unsupportedIterableToArray.js +0 -9
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/using.js +0 -12
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js +0 -59
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js +0 -69
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapNativeSuper.js +0 -27
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapRegExp.js +0 -51
- package/runtime/node_modules/@oxc-project/runtime/src/helpers/writeOnlyError.js +0 -4
- package/runtime/node_modules/@petamoriken/float16/LICENSE +0 -21
- package/runtime/node_modules/@petamoriken/float16/README.md +0 -413
- package/runtime/node_modules/@petamoriken/float16/browser/float16.js +0 -1340
- package/runtime/node_modules/@petamoriken/float16/browser/float16.mjs +0 -1325
- package/runtime/node_modules/@petamoriken/float16/index.d.ts +0 -546
- package/runtime/node_modules/@petamoriken/float16/index.v5.6.d.ts +0 -546
- package/runtime/node_modules/@petamoriken/float16/index.v5.7.d.ts +0 -555
- package/runtime/node_modules/@petamoriken/float16/inspect/node.cjs +0 -25
- package/runtime/node_modules/@petamoriken/float16/inspect/node.mjs +0 -23
- package/runtime/node_modules/@petamoriken/float16/lib/DataView.cjs +0 -16
- package/runtime/node_modules/@petamoriken/float16/lib/Float16Array.cjs +0 -690
- package/runtime/node_modules/@petamoriken/float16/lib/_util/arrayIterator.cjs +0 -52
- package/runtime/node_modules/@petamoriken/float16/lib/_util/brand.cjs +0 -27
- package/runtime/node_modules/@petamoriken/float16/lib/_util/converter.cjs +0 -111
- package/runtime/node_modules/@petamoriken/float16/lib/_util/is.cjs +0 -78
- package/runtime/node_modules/@petamoriken/float16/lib/_util/messages.cjs +0 -18
- package/runtime/node_modules/@petamoriken/float16/lib/_util/primordials.cjs +0 -150
- package/runtime/node_modules/@petamoriken/float16/lib/_util/spec.cjs +0 -84
- package/runtime/node_modules/@petamoriken/float16/lib/f16round.cjs +0 -10
- package/runtime/node_modules/@petamoriken/float16/lib/index.cjs +0 -16
- package/runtime/node_modules/@petamoriken/float16/lib/isTypedArray.cjs +0 -11
- package/runtime/node_modules/@petamoriken/float16/package.json +0 -115
- package/runtime/node_modules/@petamoriken/float16/src/DataView.mjs +0 -35
- package/runtime/node_modules/@petamoriken/float16/src/Float16Array.mjs +0 -1194
- package/runtime/node_modules/@petamoriken/float16/src/_util/arrayIterator.mjs +0 -86
- package/runtime/node_modules/@petamoriken/float16/src/_util/brand.mjs +0 -31
- package/runtime/node_modules/@petamoriken/float16/src/_util/converter.mjs +0 -173
- package/runtime/node_modules/@petamoriken/float16/src/_util/is.mjs +0 -151
- package/runtime/node_modules/@petamoriken/float16/src/_util/messages.mjs +0 -22
- package/runtime/node_modules/@petamoriken/float16/src/_util/primordials.mjs +0 -254
- package/runtime/node_modules/@petamoriken/float16/src/_util/spec.mjs +0 -137
- package/runtime/node_modules/@petamoriken/float16/src/f16round.mjs +0 -10
- package/runtime/node_modules/@petamoriken/float16/src/index.mjs +0 -7
- package/runtime/node_modules/@petamoriken/float16/src/isTypedArray.mjs +0 -10
- package/runtime/node_modules/jsbi/LICENSE +0 -176
- package/runtime/node_modules/jsbi/README.md +0 -173
- package/runtime/node_modules/jsbi/dist/jsbi-cjs.js +0 -2
- package/runtime/node_modules/jsbi/dist/jsbi-cjs.js.map +0 -1
- package/runtime/node_modules/jsbi/dist/jsbi-umd.js +0 -2
- package/runtime/node_modules/jsbi/dist/jsbi-umd.js.map +0 -1
- package/runtime/node_modules/jsbi/dist/jsbi.mjs +0 -2
- package/runtime/node_modules/jsbi/dist/jsbi.mjs.map +0 -1
- package/runtime/node_modules/jsbi/jsbi.d.ts +0 -43
- package/runtime/node_modules/jsbi/package.json +0 -35
- package/runtime/node_modules/urlpattern-polyfill/LICENSE +0 -19
- package/runtime/node_modules/urlpattern-polyfill/README.md +0 -242
- package/runtime/node_modules/urlpattern-polyfill/dist/index.d.ts +0 -9
- package/runtime/node_modules/urlpattern-polyfill/dist/types.d.ts +0 -49
- package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.cjs +0 -1
- package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.js +0 -1
- package/runtime/node_modules/urlpattern-polyfill/index.cjs +0 -7
- package/runtime/node_modules/urlpattern-polyfill/index.js +0 -7
- package/runtime/node_modules/urlpattern-polyfill/package.json +0 -149
- package/runtime/pnp-bin-run.cjs +0 -91
- package/runtime/pnp-util.cjs +0 -62
- package/runtime/polyfills.cjs +0 -816
- package/runtime/preload-async-hooks.mjs +0 -110
- package/runtime/preload-common.cjs +0 -1096
- package/runtime/preload.cjs +0 -313
- package/runtime/preload.mjs +0 -149
- package/runtime/transform-core.mjs +0 -756
- package/runtime/version.mjs +0 -12
- package/runtime/worker-blob-url.cjs +0 -116
- package/runtime/worker-polyfill.mjs +0 -541
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.safeIfNeeded = safeIfNeeded;
|
|
7
|
-
exports.wrap = wrap;
|
|
8
|
-
var _primordials = require("./primordials.cjs");
|
|
9
|
-
const arrayIterators = new _primordials.NativeWeakMap();
|
|
10
|
-
const SafeIteratorPrototype = (0, _primordials.ObjectCreate)(null, {
|
|
11
|
-
next: {
|
|
12
|
-
value: function next() {
|
|
13
|
-
const arrayIterator = (0, _primordials.WeakMapPrototypeGet)(arrayIterators, this);
|
|
14
|
-
return (0, _primordials.ArrayIteratorPrototypeNext)(arrayIterator);
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
[_primordials.SymbolIterator]: {
|
|
18
|
-
value: function values() {
|
|
19
|
-
return this;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
function safeIfNeeded(array) {
|
|
24
|
-
if (array[_primordials.SymbolIterator] === _primordials.NativeArrayPrototypeSymbolIterator && _primordials.ArrayIteratorPrototype.next === _primordials.ArrayIteratorPrototypeNext) {
|
|
25
|
-
return array;
|
|
26
|
-
}
|
|
27
|
-
const safe = (0, _primordials.ObjectCreate)(SafeIteratorPrototype);
|
|
28
|
-
(0, _primordials.WeakMapPrototypeSet)(arrayIterators, safe, (0, _primordials.ArrayPrototypeSymbolIterator)(array));
|
|
29
|
-
return safe;
|
|
30
|
-
}
|
|
31
|
-
const generators = new _primordials.NativeWeakMap();
|
|
32
|
-
const DummyArrayIteratorPrototype = (0, _primordials.ObjectCreate)(_primordials.IteratorPrototype, {
|
|
33
|
-
next: {
|
|
34
|
-
value: function next() {
|
|
35
|
-
const generator = (0, _primordials.WeakMapPrototypeGet)(generators, this);
|
|
36
|
-
return (0, _primordials.GeneratorPrototypeNext)(generator);
|
|
37
|
-
},
|
|
38
|
-
writable: true,
|
|
39
|
-
configurable: true
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
for (const key of (0, _primordials.ReflectOwnKeys)(_primordials.ArrayIteratorPrototype)) {
|
|
43
|
-
if (key === "next") {
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
(0, _primordials.ObjectDefineProperty)(DummyArrayIteratorPrototype, key, (0, _primordials.ReflectGetOwnPropertyDescriptor)(_primordials.ArrayIteratorPrototype, key));
|
|
47
|
-
}
|
|
48
|
-
function wrap(generator) {
|
|
49
|
-
const dummy = (0, _primordials.ObjectCreate)(DummyArrayIteratorPrototype);
|
|
50
|
-
(0, _primordials.WeakMapPrototypeSet)(generators, dummy, generator);
|
|
51
|
-
return dummy;
|
|
52
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.hasFloat16ArrayBrand = hasFloat16ArrayBrand;
|
|
7
|
-
var _is = require("./is.cjs");
|
|
8
|
-
var _messages = require("./messages.cjs");
|
|
9
|
-
var _primordials = require("./primordials.cjs");
|
|
10
|
-
const brand = exports.brand = (0, _primordials.SymbolFor)("__Float16Array__");
|
|
11
|
-
function hasFloat16ArrayBrand(target) {
|
|
12
|
-
if (!(0, _is.isObjectLike)(target)) {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
const prototype = (0, _primordials.ReflectGetPrototypeOf)(target);
|
|
16
|
-
if (!(0, _is.isObjectLike)(prototype)) {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
const constructor = prototype.constructor;
|
|
20
|
-
if (constructor === undefined) {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
if (!(0, _is.isObject)(constructor)) {
|
|
24
|
-
throw (0, _primordials.NativeTypeError)(_messages.THE_CONSTRUCTOR_PROPERTY_VALUE_IS_NOT_AN_OBJECT);
|
|
25
|
-
}
|
|
26
|
-
return (0, _primordials.ReflectHas)(constructor, brand);
|
|
27
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.convertToNumber = convertToNumber;
|
|
7
|
-
exports.roundToFloat16 = roundToFloat16;
|
|
8
|
-
exports.roundToFloat16Bits = roundToFloat16Bits;
|
|
9
|
-
var _primordials = require("./primordials.cjs");
|
|
10
|
-
const INVERSE_OF_EPSILON = 1 / _primordials.EPSILON;
|
|
11
|
-
function roundTiesToEven(num) {
|
|
12
|
-
return num + INVERSE_OF_EPSILON - INVERSE_OF_EPSILON;
|
|
13
|
-
}
|
|
14
|
-
const FLOAT16_MIN_VALUE = 6.103515625e-05;
|
|
15
|
-
const FLOAT16_MAX_VALUE = 65504;
|
|
16
|
-
const FLOAT16_EPSILON = 0.0009765625;
|
|
17
|
-
const FLOAT16_EPSILON_MULTIPLIED_BY_FLOAT16_MIN_VALUE = FLOAT16_EPSILON * FLOAT16_MIN_VALUE;
|
|
18
|
-
const FLOAT16_EPSILON_DEVIDED_BY_EPSILON = FLOAT16_EPSILON * INVERSE_OF_EPSILON;
|
|
19
|
-
function roundToFloat16(num) {
|
|
20
|
-
const number = +num;
|
|
21
|
-
if (!(0, _primordials.NumberIsFinite)(number) || number === 0) {
|
|
22
|
-
return number;
|
|
23
|
-
}
|
|
24
|
-
const sign = number > 0 ? 1 : -1;
|
|
25
|
-
const absolute = (0, _primordials.MathAbs)(number);
|
|
26
|
-
if (absolute < FLOAT16_MIN_VALUE) {
|
|
27
|
-
return sign * roundTiesToEven(absolute / FLOAT16_EPSILON_MULTIPLIED_BY_FLOAT16_MIN_VALUE) * FLOAT16_EPSILON_MULTIPLIED_BY_FLOAT16_MIN_VALUE;
|
|
28
|
-
}
|
|
29
|
-
const temp = (1 + FLOAT16_EPSILON_DEVIDED_BY_EPSILON) * absolute;
|
|
30
|
-
const result = temp - (temp - absolute);
|
|
31
|
-
if (result > FLOAT16_MAX_VALUE || (0, _primordials.NumberIsNaN)(result)) {
|
|
32
|
-
return sign * Infinity;
|
|
33
|
-
}
|
|
34
|
-
return sign * result;
|
|
35
|
-
}
|
|
36
|
-
const buffer = new _primordials.NativeArrayBuffer(4);
|
|
37
|
-
const floatView = new _primordials.NativeFloat32Array(buffer);
|
|
38
|
-
const uint32View = new _primordials.NativeUint32Array(buffer);
|
|
39
|
-
const baseTable = new _primordials.NativeUint16Array(512);
|
|
40
|
-
const shiftTable = new _primordials.NativeUint8Array(512);
|
|
41
|
-
for (let i = 0; i < 256; ++i) {
|
|
42
|
-
const e = i - 127;
|
|
43
|
-
if (e < -24) {
|
|
44
|
-
baseTable[i] = 0x0000;
|
|
45
|
-
baseTable[i | 0x100] = 0x8000;
|
|
46
|
-
shiftTable[i] = 24;
|
|
47
|
-
shiftTable[i | 0x100] = 24;
|
|
48
|
-
} else if (e < -14) {
|
|
49
|
-
baseTable[i] = 0x0400 >> -e - 14;
|
|
50
|
-
baseTable[i | 0x100] = 0x0400 >> -e - 14 | 0x8000;
|
|
51
|
-
shiftTable[i] = -e - 1;
|
|
52
|
-
shiftTable[i | 0x100] = -e - 1;
|
|
53
|
-
} else if (e <= 15) {
|
|
54
|
-
baseTable[i] = e + 15 << 10;
|
|
55
|
-
baseTable[i | 0x100] = e + 15 << 10 | 0x8000;
|
|
56
|
-
shiftTable[i] = 13;
|
|
57
|
-
shiftTable[i | 0x100] = 13;
|
|
58
|
-
} else if (e < 128) {
|
|
59
|
-
baseTable[i] = 0x7c00;
|
|
60
|
-
baseTable[i | 0x100] = 0xfc00;
|
|
61
|
-
shiftTable[i] = 24;
|
|
62
|
-
shiftTable[i | 0x100] = 24;
|
|
63
|
-
} else {
|
|
64
|
-
baseTable[i] = 0x7c00;
|
|
65
|
-
baseTable[i | 0x100] = 0xfc00;
|
|
66
|
-
shiftTable[i] = 13;
|
|
67
|
-
shiftTable[i | 0x100] = 13;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function roundToFloat16Bits(num) {
|
|
71
|
-
floatView[0] = roundToFloat16(num);
|
|
72
|
-
const f = uint32View[0];
|
|
73
|
-
const e = f >> 23 & 0x1ff;
|
|
74
|
-
return baseTable[e] + ((f & 0x007fffff) >> shiftTable[e]);
|
|
75
|
-
}
|
|
76
|
-
const mantissaTable = new _primordials.NativeUint32Array(2048);
|
|
77
|
-
for (let i = 1; i < 1024; ++i) {
|
|
78
|
-
let m = i << 13;
|
|
79
|
-
let e = 0;
|
|
80
|
-
while ((m & 0x00800000) === 0) {
|
|
81
|
-
m <<= 1;
|
|
82
|
-
e -= 0x00800000;
|
|
83
|
-
}
|
|
84
|
-
m &= ~0x00800000;
|
|
85
|
-
e += 0x38800000;
|
|
86
|
-
mantissaTable[i] = m | e;
|
|
87
|
-
}
|
|
88
|
-
for (let i = 1024; i < 2048; ++i) {
|
|
89
|
-
mantissaTable[i] = 0x38000000 + (i - 1024 << 13);
|
|
90
|
-
}
|
|
91
|
-
const exponentTable = new _primordials.NativeUint32Array(64);
|
|
92
|
-
for (let i = 1; i < 31; ++i) {
|
|
93
|
-
exponentTable[i] = i << 23;
|
|
94
|
-
}
|
|
95
|
-
exponentTable[31] = 0x47800000;
|
|
96
|
-
exponentTable[32] = 0x80000000;
|
|
97
|
-
for (let i = 33; i < 63; ++i) {
|
|
98
|
-
exponentTable[i] = 0x80000000 + (i - 32 << 23);
|
|
99
|
-
}
|
|
100
|
-
exponentTable[63] = 0xc7800000;
|
|
101
|
-
const offsetTable = new _primordials.NativeUint16Array(64);
|
|
102
|
-
for (let i = 1; i < 64; ++i) {
|
|
103
|
-
if (i !== 32) {
|
|
104
|
-
offsetTable[i] = 1024;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
function convertToNumber(float16bits) {
|
|
108
|
-
const i = float16bits >> 10;
|
|
109
|
-
uint32View[0] = mantissaTable[offsetTable[i] + (float16bits & 0x3ff)] + exponentTable[i];
|
|
110
|
-
return floatView[0];
|
|
111
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
7
|
-
exports.isCanonicalIntegerIndexString = isCanonicalIntegerIndexString;
|
|
8
|
-
exports.isNativeBigIntTypedArray = isNativeBigIntTypedArray;
|
|
9
|
-
exports.isNativeTypedArray = isNativeTypedArray;
|
|
10
|
-
exports.isObject = isObject;
|
|
11
|
-
exports.isObjectLike = isObjectLike;
|
|
12
|
-
exports.isOrdinaryArray = isOrdinaryArray;
|
|
13
|
-
exports.isOrdinaryNativeTypedArray = isOrdinaryNativeTypedArray;
|
|
14
|
-
exports.isSharedArrayBuffer = isSharedArrayBuffer;
|
|
15
|
-
var _primordials = require("./primordials.cjs");
|
|
16
|
-
function isObject(value) {
|
|
17
|
-
return value !== null && typeof value === "object" || typeof value === "function";
|
|
18
|
-
}
|
|
19
|
-
function isObjectLike(value) {
|
|
20
|
-
return value !== null && typeof value === "object";
|
|
21
|
-
}
|
|
22
|
-
function isNativeTypedArray(value) {
|
|
23
|
-
return (0, _primordials.TypedArrayPrototypeGetSymbolToStringTag)(value) !== undefined;
|
|
24
|
-
}
|
|
25
|
-
function isNativeBigIntTypedArray(value) {
|
|
26
|
-
const typedArrayName = (0, _primordials.TypedArrayPrototypeGetSymbolToStringTag)(value);
|
|
27
|
-
return typedArrayName === "BigInt64Array" || typedArrayName === "BigUint64Array";
|
|
28
|
-
}
|
|
29
|
-
function isArrayBuffer(value) {
|
|
30
|
-
try {
|
|
31
|
-
if ((0, _primordials.ArrayIsArray)(value)) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
(0, _primordials.ArrayBufferPrototypeGetByteLength)(value);
|
|
35
|
-
return true;
|
|
36
|
-
} catch (e) {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function isSharedArrayBuffer(value) {
|
|
41
|
-
if (_primordials.NativeSharedArrayBuffer === null) {
|
|
42
|
-
return false;
|
|
43
|
-
}
|
|
44
|
-
try {
|
|
45
|
-
(0, _primordials.SharedArrayBufferPrototypeGetByteLength)(value);
|
|
46
|
-
return true;
|
|
47
|
-
} catch (e) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
function isAnyArrayBuffer(value) {
|
|
52
|
-
return isArrayBuffer(value) || isSharedArrayBuffer(value);
|
|
53
|
-
}
|
|
54
|
-
function isOrdinaryArray(value) {
|
|
55
|
-
if (!(0, _primordials.ArrayIsArray)(value)) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
return value[_primordials.SymbolIterator] === _primordials.NativeArrayPrototypeSymbolIterator && _primordials.ArrayIteratorPrototype.next === _primordials.ArrayIteratorPrototypeNext;
|
|
59
|
-
}
|
|
60
|
-
function isOrdinaryNativeTypedArray(value) {
|
|
61
|
-
if (!isNativeTypedArray(value)) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
return value[_primordials.SymbolIterator] === _primordials.NativeTypedArrayPrototypeSymbolIterator && _primordials.ArrayIteratorPrototype.next === _primordials.ArrayIteratorPrototypeNext;
|
|
65
|
-
}
|
|
66
|
-
function isCanonicalIntegerIndexString(value) {
|
|
67
|
-
if (typeof value !== "string") {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
const number = +value;
|
|
71
|
-
if (value !== number + "") {
|
|
72
|
-
return false;
|
|
73
|
-
}
|
|
74
|
-
if (!(0, _primordials.NumberIsFinite)(number)) {
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
return number === (0, _primordials.MathTrunc)(number);
|
|
78
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
const THIS_IS_NOT_AN_OBJECT = exports.THIS_IS_NOT_AN_OBJECT = "This is not an object";
|
|
7
|
-
const THIS_IS_NOT_A_FLOAT16ARRAY_OBJECT = exports.THIS_IS_NOT_A_FLOAT16ARRAY_OBJECT = "This is not a Float16Array object";
|
|
8
|
-
const THIS_CONSTRUCTOR_IS_NOT_A_SUBCLASS_OF_FLOAT16ARRAY = exports.THIS_CONSTRUCTOR_IS_NOT_A_SUBCLASS_OF_FLOAT16ARRAY = "This constructor is not a subclass of Float16Array";
|
|
9
|
-
const THE_CONSTRUCTOR_PROPERTY_VALUE_IS_NOT_AN_OBJECT = exports.THE_CONSTRUCTOR_PROPERTY_VALUE_IS_NOT_AN_OBJECT = "The constructor property value is not an object";
|
|
10
|
-
const SPECIES_CONSTRUCTOR_DIDNT_RETURN_TYPEDARRAY_OBJECT = exports.SPECIES_CONSTRUCTOR_DIDNT_RETURN_TYPEDARRAY_OBJECT = "Species constructor didn't return TypedArray object";
|
|
11
|
-
const DERIVED_CONSTRUCTOR_CREATED_TYPEDARRAY_OBJECT_WHICH_WAS_TOO_SMALL_LENGTH = exports.DERIVED_CONSTRUCTOR_CREATED_TYPEDARRAY_OBJECT_WHICH_WAS_TOO_SMALL_LENGTH = "Derived constructor created TypedArray object which was too small length";
|
|
12
|
-
const ATTEMPTING_TO_ACCESS_DETACHED_ARRAYBUFFER = exports.ATTEMPTING_TO_ACCESS_DETACHED_ARRAYBUFFER = "Attempting to access detached ArrayBuffer";
|
|
13
|
-
const CANNOT_CONVERT_UNDEFINED_OR_NULL_TO_OBJECT = exports.CANNOT_CONVERT_UNDEFINED_OR_NULL_TO_OBJECT = "Cannot convert undefined or null to object";
|
|
14
|
-
const CANNOT_MIX_BIGINT_AND_OTHER_TYPES = exports.CANNOT_MIX_BIGINT_AND_OTHER_TYPES = "Cannot mix BigInt and other types, use explicit conversions";
|
|
15
|
-
const ITERATOR_PROPERTY_IS_NOT_CALLABLE = exports.ITERATOR_PROPERTY_IS_NOT_CALLABLE = "@@iterator property is not callable";
|
|
16
|
-
const REDUCE_OF_EMPTY_ARRAY_WITH_NO_INITIAL_VALUE = exports.REDUCE_OF_EMPTY_ARRAY_WITH_NO_INITIAL_VALUE = "Reduce of empty array with no initial value";
|
|
17
|
-
const THE_COMPARISON_FUNCTION_MUST_BE_EITHER_A_FUNCTION_OR_UNDEFINED = exports.THE_COMPARISON_FUNCTION_MUST_BE_EITHER_A_FUNCTION_OR_UNDEFINED = "The comparison function must be either a function or undefined";
|
|
18
|
-
const OFFSET_IS_OUT_OF_BOUNDS = exports.OFFSET_IS_OUT_OF_BOUNDS = "Offset is out of bounds";
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _messages = require("./messages.cjs");
|
|
7
|
-
function uncurryThis(target) {
|
|
8
|
-
return (thisArg, ...args) => {
|
|
9
|
-
return ReflectApply(target, thisArg, args);
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
function uncurryThisGetter(target, key) {
|
|
13
|
-
return uncurryThis(ReflectGetOwnPropertyDescriptor(target, key).get);
|
|
14
|
-
}
|
|
15
|
-
const {
|
|
16
|
-
apply: ReflectApply,
|
|
17
|
-
construct: ReflectConstruct,
|
|
18
|
-
defineProperty: ReflectDefineProperty,
|
|
19
|
-
get: ReflectGet,
|
|
20
|
-
getOwnPropertyDescriptor: ReflectGetOwnPropertyDescriptor,
|
|
21
|
-
getPrototypeOf: ReflectGetPrototypeOf,
|
|
22
|
-
has: ReflectHas,
|
|
23
|
-
ownKeys: ReflectOwnKeys,
|
|
24
|
-
set: ReflectSet,
|
|
25
|
-
setPrototypeOf: ReflectSetPrototypeOf
|
|
26
|
-
} = Reflect;
|
|
27
|
-
exports.ReflectSetPrototypeOf = ReflectSetPrototypeOf;
|
|
28
|
-
exports.ReflectSet = ReflectSet;
|
|
29
|
-
exports.ReflectOwnKeys = ReflectOwnKeys;
|
|
30
|
-
exports.ReflectHas = ReflectHas;
|
|
31
|
-
exports.ReflectGetPrototypeOf = ReflectGetPrototypeOf;
|
|
32
|
-
exports.ReflectGetOwnPropertyDescriptor = ReflectGetOwnPropertyDescriptor;
|
|
33
|
-
exports.ReflectGet = ReflectGet;
|
|
34
|
-
exports.ReflectDefineProperty = ReflectDefineProperty;
|
|
35
|
-
exports.ReflectConstruct = ReflectConstruct;
|
|
36
|
-
exports.ReflectApply = ReflectApply;
|
|
37
|
-
const NativeProxy = exports.NativeProxy = Proxy;
|
|
38
|
-
const {
|
|
39
|
-
EPSILON,
|
|
40
|
-
MAX_SAFE_INTEGER,
|
|
41
|
-
isFinite: NumberIsFinite,
|
|
42
|
-
isNaN: NumberIsNaN
|
|
43
|
-
} = Number;
|
|
44
|
-
exports.NumberIsNaN = NumberIsNaN;
|
|
45
|
-
exports.NumberIsFinite = NumberIsFinite;
|
|
46
|
-
exports.MAX_SAFE_INTEGER = MAX_SAFE_INTEGER;
|
|
47
|
-
exports.EPSILON = EPSILON;
|
|
48
|
-
const {
|
|
49
|
-
iterator: SymbolIterator,
|
|
50
|
-
species: SymbolSpecies,
|
|
51
|
-
toStringTag: SymbolToStringTag,
|
|
52
|
-
for: SymbolFor
|
|
53
|
-
} = Symbol;
|
|
54
|
-
exports.SymbolFor = SymbolFor;
|
|
55
|
-
exports.SymbolToStringTag = SymbolToStringTag;
|
|
56
|
-
exports.SymbolSpecies = SymbolSpecies;
|
|
57
|
-
exports.SymbolIterator = SymbolIterator;
|
|
58
|
-
const NativeObject = exports.NativeObject = Object;
|
|
59
|
-
const {
|
|
60
|
-
create: ObjectCreate,
|
|
61
|
-
defineProperty: ObjectDefineProperty,
|
|
62
|
-
freeze: ObjectFreeze,
|
|
63
|
-
is: ObjectIs
|
|
64
|
-
} = NativeObject;
|
|
65
|
-
exports.ObjectIs = ObjectIs;
|
|
66
|
-
exports.ObjectFreeze = ObjectFreeze;
|
|
67
|
-
exports.ObjectDefineProperty = ObjectDefineProperty;
|
|
68
|
-
exports.ObjectCreate = ObjectCreate;
|
|
69
|
-
const ObjectPrototype = NativeObject.prototype;
|
|
70
|
-
const ObjectPrototype__lookupGetter__ = exports.ObjectPrototype__lookupGetter__ = ObjectPrototype.__lookupGetter__ ? uncurryThis(ObjectPrototype.__lookupGetter__) : (object, key) => {
|
|
71
|
-
if (object == null) {
|
|
72
|
-
throw NativeTypeError(_messages.CANNOT_CONVERT_UNDEFINED_OR_NULL_TO_OBJECT);
|
|
73
|
-
}
|
|
74
|
-
let target = NativeObject(object);
|
|
75
|
-
do {
|
|
76
|
-
const descriptor = ReflectGetOwnPropertyDescriptor(target, key);
|
|
77
|
-
if (descriptor !== undefined) {
|
|
78
|
-
if (ObjectHasOwn(descriptor, "get")) {
|
|
79
|
-
return descriptor.get;
|
|
80
|
-
}
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
} while ((target = ReflectGetPrototypeOf(target)) !== null);
|
|
84
|
-
};
|
|
85
|
-
const ObjectHasOwn = exports.ObjectHasOwn = NativeObject.hasOwn || uncurryThis(ObjectPrototype.hasOwnProperty);
|
|
86
|
-
const NativeArray = Array;
|
|
87
|
-
const ArrayIsArray = exports.ArrayIsArray = NativeArray.isArray;
|
|
88
|
-
const ArrayPrototype = NativeArray.prototype;
|
|
89
|
-
const ArrayPrototypeJoin = exports.ArrayPrototypeJoin = uncurryThis(ArrayPrototype.join);
|
|
90
|
-
const ArrayPrototypePush = exports.ArrayPrototypePush = uncurryThis(ArrayPrototype.push);
|
|
91
|
-
const ArrayPrototypeToLocaleString = exports.ArrayPrototypeToLocaleString = uncurryThis(ArrayPrototype.toLocaleString);
|
|
92
|
-
const NativeArrayPrototypeSymbolIterator = exports.NativeArrayPrototypeSymbolIterator = ArrayPrototype[SymbolIterator];
|
|
93
|
-
const ArrayPrototypeSymbolIterator = exports.ArrayPrototypeSymbolIterator = uncurryThis(NativeArrayPrototypeSymbolIterator);
|
|
94
|
-
const {
|
|
95
|
-
abs: MathAbs,
|
|
96
|
-
trunc: MathTrunc
|
|
97
|
-
} = Math;
|
|
98
|
-
exports.MathTrunc = MathTrunc;
|
|
99
|
-
exports.MathAbs = MathAbs;
|
|
100
|
-
const NativeArrayBuffer = exports.NativeArrayBuffer = ArrayBuffer;
|
|
101
|
-
const ArrayBufferIsView = exports.ArrayBufferIsView = NativeArrayBuffer.isView;
|
|
102
|
-
const ArrayBufferPrototype = NativeArrayBuffer.prototype;
|
|
103
|
-
const ArrayBufferPrototypeSlice = exports.ArrayBufferPrototypeSlice = uncurryThis(ArrayBufferPrototype.slice);
|
|
104
|
-
const ArrayBufferPrototypeGetByteLength = exports.ArrayBufferPrototypeGetByteLength = uncurryThisGetter(ArrayBufferPrototype, "byteLength");
|
|
105
|
-
const NativeSharedArrayBuffer = exports.NativeSharedArrayBuffer = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : null;
|
|
106
|
-
const SharedArrayBufferPrototypeGetByteLength = exports.SharedArrayBufferPrototypeGetByteLength = NativeSharedArrayBuffer && uncurryThisGetter(NativeSharedArrayBuffer.prototype, "byteLength");
|
|
107
|
-
const TypedArray = exports.TypedArray = ReflectGetPrototypeOf(Uint8Array);
|
|
108
|
-
const TypedArrayFrom = TypedArray.from;
|
|
109
|
-
const TypedArrayPrototype = exports.TypedArrayPrototype = TypedArray.prototype;
|
|
110
|
-
const NativeTypedArrayPrototypeSymbolIterator = exports.NativeTypedArrayPrototypeSymbolIterator = TypedArrayPrototype[SymbolIterator];
|
|
111
|
-
const TypedArrayPrototypeKeys = exports.TypedArrayPrototypeKeys = uncurryThis(TypedArrayPrototype.keys);
|
|
112
|
-
const TypedArrayPrototypeValues = exports.TypedArrayPrototypeValues = uncurryThis(TypedArrayPrototype.values);
|
|
113
|
-
const TypedArrayPrototypeEntries = exports.TypedArrayPrototypeEntries = uncurryThis(TypedArrayPrototype.entries);
|
|
114
|
-
const TypedArrayPrototypeSet = exports.TypedArrayPrototypeSet = uncurryThis(TypedArrayPrototype.set);
|
|
115
|
-
const TypedArrayPrototypeReverse = exports.TypedArrayPrototypeReverse = uncurryThis(TypedArrayPrototype.reverse);
|
|
116
|
-
const TypedArrayPrototypeFill = exports.TypedArrayPrototypeFill = uncurryThis(TypedArrayPrototype.fill);
|
|
117
|
-
const TypedArrayPrototypeCopyWithin = exports.TypedArrayPrototypeCopyWithin = uncurryThis(TypedArrayPrototype.copyWithin);
|
|
118
|
-
const TypedArrayPrototypeSort = exports.TypedArrayPrototypeSort = uncurryThis(TypedArrayPrototype.sort);
|
|
119
|
-
const TypedArrayPrototypeSlice = exports.TypedArrayPrototypeSlice = uncurryThis(TypedArrayPrototype.slice);
|
|
120
|
-
const TypedArrayPrototypeSubarray = exports.TypedArrayPrototypeSubarray = uncurryThis(TypedArrayPrototype.subarray);
|
|
121
|
-
const TypedArrayPrototypeGetBuffer = exports.TypedArrayPrototypeGetBuffer = uncurryThisGetter(TypedArrayPrototype, "buffer");
|
|
122
|
-
const TypedArrayPrototypeGetByteOffset = exports.TypedArrayPrototypeGetByteOffset = uncurryThisGetter(TypedArrayPrototype, "byteOffset");
|
|
123
|
-
const TypedArrayPrototypeGetLength = exports.TypedArrayPrototypeGetLength = uncurryThisGetter(TypedArrayPrototype, "length");
|
|
124
|
-
const TypedArrayPrototypeGetSymbolToStringTag = exports.TypedArrayPrototypeGetSymbolToStringTag = uncurryThisGetter(TypedArrayPrototype, SymbolToStringTag);
|
|
125
|
-
const NativeUint8Array = exports.NativeUint8Array = Uint8Array;
|
|
126
|
-
const NativeUint16Array = exports.NativeUint16Array = Uint16Array;
|
|
127
|
-
const Uint16ArrayFrom = (...args) => {
|
|
128
|
-
return ReflectApply(TypedArrayFrom, NativeUint16Array, args);
|
|
129
|
-
};
|
|
130
|
-
exports.Uint16ArrayFrom = Uint16ArrayFrom;
|
|
131
|
-
const NativeUint32Array = exports.NativeUint32Array = Uint32Array;
|
|
132
|
-
const NativeFloat32Array = exports.NativeFloat32Array = Float32Array;
|
|
133
|
-
const ArrayIteratorPrototype = exports.ArrayIteratorPrototype = ReflectGetPrototypeOf([][SymbolIterator]());
|
|
134
|
-
const ArrayIteratorPrototypeNext = exports.ArrayIteratorPrototypeNext = uncurryThis(ArrayIteratorPrototype.next);
|
|
135
|
-
const GeneratorPrototypeNext = exports.GeneratorPrototypeNext = uncurryThis(function* () {}().next);
|
|
136
|
-
const IteratorPrototype = exports.IteratorPrototype = ReflectGetPrototypeOf(ArrayIteratorPrototype);
|
|
137
|
-
const DataViewPrototype = DataView.prototype;
|
|
138
|
-
const DataViewPrototypeGetUint16 = exports.DataViewPrototypeGetUint16 = uncurryThis(DataViewPrototype.getUint16);
|
|
139
|
-
const DataViewPrototypeSetUint16 = exports.DataViewPrototypeSetUint16 = uncurryThis(DataViewPrototype.setUint16);
|
|
140
|
-
const NativeTypeError = exports.NativeTypeError = TypeError;
|
|
141
|
-
const NativeRangeError = exports.NativeRangeError = RangeError;
|
|
142
|
-
const NativeWeakSet = exports.NativeWeakSet = WeakSet;
|
|
143
|
-
const WeakSetPrototype = NativeWeakSet.prototype;
|
|
144
|
-
const WeakSetPrototypeAdd = exports.WeakSetPrototypeAdd = uncurryThis(WeakSetPrototype.add);
|
|
145
|
-
const WeakSetPrototypeHas = exports.WeakSetPrototypeHas = uncurryThis(WeakSetPrototype.has);
|
|
146
|
-
const NativeWeakMap = exports.NativeWeakMap = WeakMap;
|
|
147
|
-
const WeakMapPrototype = NativeWeakMap.prototype;
|
|
148
|
-
const WeakMapPrototypeGet = exports.WeakMapPrototypeGet = uncurryThis(WeakMapPrototype.get);
|
|
149
|
-
const WeakMapPrototypeHas = exports.WeakMapPrototypeHas = uncurryThis(WeakMapPrototype.has);
|
|
150
|
-
const WeakMapPrototypeSet = exports.WeakMapPrototypeSet = uncurryThis(WeakMapPrototype.set);
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.IsDetachedBuffer = IsDetachedBuffer;
|
|
7
|
-
exports.SpeciesConstructor = SpeciesConstructor;
|
|
8
|
-
exports.ToIntegerOrInfinity = ToIntegerOrInfinity;
|
|
9
|
-
exports.ToLength = ToLength;
|
|
10
|
-
exports.defaultCompare = defaultCompare;
|
|
11
|
-
var _is = require("./is.cjs");
|
|
12
|
-
var _messages = require("./messages.cjs");
|
|
13
|
-
var _primordials = require("./primordials.cjs");
|
|
14
|
-
function ToIntegerOrInfinity(target) {
|
|
15
|
-
const number = +target;
|
|
16
|
-
if ((0, _primordials.NumberIsNaN)(number) || number === 0) {
|
|
17
|
-
return 0;
|
|
18
|
-
}
|
|
19
|
-
return (0, _primordials.MathTrunc)(number);
|
|
20
|
-
}
|
|
21
|
-
function ToLength(target) {
|
|
22
|
-
const length = ToIntegerOrInfinity(target);
|
|
23
|
-
if (length < 0) {
|
|
24
|
-
return 0;
|
|
25
|
-
}
|
|
26
|
-
return length < _primordials.MAX_SAFE_INTEGER ? length : _primordials.MAX_SAFE_INTEGER;
|
|
27
|
-
}
|
|
28
|
-
function SpeciesConstructor(target, defaultConstructor) {
|
|
29
|
-
if (!(0, _is.isObject)(target)) {
|
|
30
|
-
throw (0, _primordials.NativeTypeError)(_messages.THIS_IS_NOT_AN_OBJECT);
|
|
31
|
-
}
|
|
32
|
-
const constructor = target.constructor;
|
|
33
|
-
if (constructor === undefined) {
|
|
34
|
-
return defaultConstructor;
|
|
35
|
-
}
|
|
36
|
-
if (!(0, _is.isObject)(constructor)) {
|
|
37
|
-
throw (0, _primordials.NativeTypeError)(_messages.THE_CONSTRUCTOR_PROPERTY_VALUE_IS_NOT_AN_OBJECT);
|
|
38
|
-
}
|
|
39
|
-
const species = constructor[_primordials.SymbolSpecies];
|
|
40
|
-
if (species == null) {
|
|
41
|
-
return defaultConstructor;
|
|
42
|
-
}
|
|
43
|
-
return species;
|
|
44
|
-
}
|
|
45
|
-
function IsDetachedBuffer(buffer) {
|
|
46
|
-
if ((0, _is.isSharedArrayBuffer)(buffer)) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
try {
|
|
50
|
-
(0, _primordials.ArrayBufferPrototypeSlice)(buffer, 0, 0);
|
|
51
|
-
return false;
|
|
52
|
-
} catch (e) {}
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
function defaultCompare(x, y) {
|
|
56
|
-
const isXNaN = (0, _primordials.NumberIsNaN)(x);
|
|
57
|
-
const isYNaN = (0, _primordials.NumberIsNaN)(y);
|
|
58
|
-
if (isXNaN && isYNaN) {
|
|
59
|
-
return 0;
|
|
60
|
-
}
|
|
61
|
-
if (isXNaN) {
|
|
62
|
-
return 1;
|
|
63
|
-
}
|
|
64
|
-
if (isYNaN) {
|
|
65
|
-
return -1;
|
|
66
|
-
}
|
|
67
|
-
if (x < y) {
|
|
68
|
-
return -1;
|
|
69
|
-
}
|
|
70
|
-
if (x > y) {
|
|
71
|
-
return 1;
|
|
72
|
-
}
|
|
73
|
-
if (x === 0 && y === 0) {
|
|
74
|
-
const isXPlusZero = (0, _primordials.ObjectIs)(x, 0);
|
|
75
|
-
const isYPlusZero = (0, _primordials.ObjectIs)(y, 0);
|
|
76
|
-
if (!isXPlusZero && isYPlusZero) {
|
|
77
|
-
return -1;
|
|
78
|
-
}
|
|
79
|
-
if (isXPlusZero && !isYPlusZero) {
|
|
80
|
-
return 1;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return 0;
|
|
84
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _Float16Array = require("./Float16Array.cjs");
|
|
7
|
-
exports.Float16Array = _Float16Array.Float16Array;
|
|
8
|
-
exports.isFloat16Array = _Float16Array.isFloat16Array;
|
|
9
|
-
var _isTypedArray = require("./isTypedArray.cjs");
|
|
10
|
-
exports.isTypedArray = _isTypedArray.isTypedArray;
|
|
11
|
-
var _DataView = require("./DataView.cjs");
|
|
12
|
-
exports.getFloat16 = _DataView.getFloat16;
|
|
13
|
-
exports.setFloat16 = _DataView.setFloat16;
|
|
14
|
-
var _f16round = require("./f16round.cjs");
|
|
15
|
-
exports.f16round = _f16round.f16round;
|
|
16
|
-
exports.hfround = _f16round.f16round;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isTypedArray = isTypedArray;
|
|
7
|
-
var _Float16Array = require("./Float16Array.cjs");
|
|
8
|
-
var _is = require("./_util/is.cjs");
|
|
9
|
-
function isTypedArray(target) {
|
|
10
|
-
return (0, _is.isNativeTypedArray)(target) || (0, _Float16Array.isFloat16Array)(target);
|
|
11
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@petamoriken/float16",
|
|
3
|
-
"version": "3.9.3",
|
|
4
|
-
"description": "IEEE 754 half-precision floating-point for JavaScript",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"float16",
|
|
7
|
-
"binary16",
|
|
8
|
-
"FP16",
|
|
9
|
-
"half-precision",
|
|
10
|
-
"ieee754",
|
|
11
|
-
"Float16Array",
|
|
12
|
-
"TypedArray",
|
|
13
|
-
"DataView",
|
|
14
|
-
"getFloat16",
|
|
15
|
-
"setFloat16",
|
|
16
|
-
"f16round",
|
|
17
|
-
"ponyfill",
|
|
18
|
-
"shim"
|
|
19
|
-
],
|
|
20
|
-
"homepage": "https://github.com/petamoriken/float16",
|
|
21
|
-
"bugs": {
|
|
22
|
-
"url": "https://github.com/petamoriken/float16/issues"
|
|
23
|
-
},
|
|
24
|
-
"repository": {
|
|
25
|
-
"type": "git",
|
|
26
|
-
"url": "https://github.com/petamoriken/float16.git"
|
|
27
|
-
},
|
|
28
|
-
"license": "MIT",
|
|
29
|
-
"author": "Kenta Moriuchi <moriken@kimamass.com> (https://moriken.dev)",
|
|
30
|
-
"sideEffects": false,
|
|
31
|
-
"exports": {
|
|
32
|
-
".": {
|
|
33
|
-
"require": "./lib/index.cjs",
|
|
34
|
-
"import": "./src/index.mjs",
|
|
35
|
-
"types": "./index.v5.7.d.ts"
|
|
36
|
-
},
|
|
37
|
-
"./inspect": {
|
|
38
|
-
"require": "./inspect/node.cjs",
|
|
39
|
-
"import": "./inspect/node.mjs"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"main": "./lib/index.cjs",
|
|
43
|
-
"browser": "./browser/float16.js",
|
|
44
|
-
"module": "./src/index.mjs",
|
|
45
|
-
"types": "./index.d.ts",
|
|
46
|
-
"typesVersions": {
|
|
47
|
-
">=5.7": {
|
|
48
|
-
"index.d.ts": [
|
|
49
|
-
"index.v5.7.d.ts"
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
">=5.6": {
|
|
53
|
-
"index.d.ts": [
|
|
54
|
-
"index.v5.6.d.ts"
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"files": [
|
|
59
|
-
"src",
|
|
60
|
-
"lib",
|
|
61
|
-
"browser",
|
|
62
|
-
"inspect/node.mjs",
|
|
63
|
-
"inspect/node.cjs",
|
|
64
|
-
"index.d.ts",
|
|
65
|
-
"index.v5.6.d.ts",
|
|
66
|
-
"index.v5.7.d.ts"
|
|
67
|
-
],
|
|
68
|
-
"scripts": {
|
|
69
|
-
"build": "concurrently \"yarn:build:*\"",
|
|
70
|
-
"build:browser": "rollup -c",
|
|
71
|
-
"build:lib": "babel src -d lib --out-file-extension .cjs",
|
|
72
|
-
"clean": "rm -rf lib browser docs coverage .nyc_output",
|
|
73
|
-
"coverage": "nyc --reporter=lcov mocha test/*.js",
|
|
74
|
-
"docs": "mkdir -p docs && cp README.md docs/index.md && yarn run docs:test",
|
|
75
|
-
"docs:test": "mkdir -p docs/test && concurrently \"yarn:docs:test:*\"",
|
|
76
|
-
"docs:test:build": "cp test/*.js docs/test && tools/power",
|
|
77
|
-
"docs:test:copy": "cp browser/float16.js docs/test/float16.js && cp test/browser/*.html docs/test",
|
|
78
|
-
"docs:test:dependencies": "cp node_modules/mocha/mocha.js node_modules/mocha/mocha.css node_modules/power-assert/build/power-assert.js docs/test",
|
|
79
|
-
"lint": "concurrently \"yarn:lint:*\"",
|
|
80
|
-
"lint:eslint": "eslint src/**/*.mjs",
|
|
81
|
-
"lint:unused": "find-unused-exports --module-glob 'src/**/*.mjs'",
|
|
82
|
-
"prepublishOnly": "yarn run lint && yarn test",
|
|
83
|
-
"refresh": "yarn run clean && yarn run build && yarn run docs",
|
|
84
|
-
"setup-test-browser": "http-server docs/test -p 8000 > /dev/null 2>&1 &",
|
|
85
|
-
"test": "mocha test/*.js",
|
|
86
|
-
"test-browser": "nightwatch -e chrome,chrome_old,firefox,firefox_old,firefox_esr,safari,safari_old"
|
|
87
|
-
},
|
|
88
|
-
"devDependencies": {
|
|
89
|
-
"@babel/cli": "^7.28.0",
|
|
90
|
-
"@babel/core": "^7.28.4",
|
|
91
|
-
"@babel/plugin-transform-modules-commonjs": "^7.27.1",
|
|
92
|
-
"@types/nightwatch": "^3.0.1",
|
|
93
|
-
"@types/node": "^24.5.2",
|
|
94
|
-
"babel-plugin-replace-import-extension": "^1.1.5",
|
|
95
|
-
"browserslist": "^4.26.2",
|
|
96
|
-
"concurrently": "^9.2.1",
|
|
97
|
-
"eslint": "^8.57.1",
|
|
98
|
-
"eslint-plugin-import": "^2.32.0",
|
|
99
|
-
"eslint-plugin-jsdoc": "^60.5.0",
|
|
100
|
-
"espower-cli": "^1.1.0",
|
|
101
|
-
"espower-loader": "^1.2.2",
|
|
102
|
-
"exorcist": "^2.0.0",
|
|
103
|
-
"find-unused-exports": "^7.1.1",
|
|
104
|
-
"http-server": "^14.1.1",
|
|
105
|
-
"mocha": "^11.7.2",
|
|
106
|
-
"nightwatch": "^3.12.2",
|
|
107
|
-
"nightwatch-saucelabs-endsauce": "^2.4.0",
|
|
108
|
-
"nyc": "^17.1.0",
|
|
109
|
-
"power-assert": "^1.4.2",
|
|
110
|
-
"rollup": "^4.52.2",
|
|
111
|
-
"rollup-plugin-cleanup": "^3.2.1",
|
|
112
|
-
"source-map-support": "^0.5.21"
|
|
113
|
-
},
|
|
114
|
-
"packageManager": "yarn@1.22.22"
|
|
115
|
-
}
|