/* * Copyright (c) 2015 Igalia * Copyright (c) 2015 Igalia S.L. * Copyright (c) 2015 Igalia. * Copyright (c) 2015, 2016 Canon Inc. All rights reserved. * Copyright (c) 2015, 2016, 2017 Canon Inc. * Copyright (c) 2016, 2020 Apple Inc. All rights reserved. * Copyright (c) 2022 Codeblog Corp. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * */ // DO NOT EDIT THIS FILE. It is automatically generated from JavaScript files for // builtins by the script: Source/JavaScriptCore/Scripts/generate-js-builtins.py #include "config.h" #include "ReadableStreamBYOBReaderBuiltins.h" #include "WebCoreJSClientData.h" #include #include #include #include #include #include #include namespace WebCore { const JSC::ConstructAbility s_readableStreamBYOBReaderInitializeReadableStreamBYOBReaderCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; const JSC::ConstructorKind s_readableStreamBYOBReaderInitializeReadableStreamBYOBReaderCodeConstructorKind = JSC::ConstructorKind::None; const int s_readableStreamBYOBReaderInitializeReadableStreamBYOBReaderCodeLength = 585; static const JSC::Intrinsic s_readableStreamBYOBReaderInitializeReadableStreamBYOBReaderCodeIntrinsic = JSC::NoIntrinsic; const char* const s_readableStreamBYOBReaderInitializeReadableStreamBYOBReaderCode = "(function (stream)\n" \ "{\n" \ " \"use strict\";\n" \ "\n" \ " if (!@isReadableStream(stream))\n" \ " @throwTypeError(\"ReadableStreamBYOBReader needs a ReadableStream\");\n" \ " if (!@isReadableByteStreamController(@getByIdDirectPrivate(stream, \"readableStreamController\")))\n" \ " @throwTypeError(\"ReadableStreamBYOBReader needs a ReadableByteStreamController\");\n" \ " if (@isReadableStreamLocked(stream))\n" \ " @throwTypeError(\"ReadableStream is locked\");\n" \ "\n" \ " @readableStreamReaderGenericInitialize(this, stream);\n" \ " @putByIdDirectPrivate(this, \"readIntoRequests\", @createFIFO());\n" \ "\n" \ " return this;\n" \ "})\n" \ ; const JSC::ConstructAbility s_readableStreamBYOBReaderCancelCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; const JSC::ConstructorKind s_readableStreamBYOBReaderCancelCodeConstructorKind = JSC::ConstructorKind::None; const int s_readableStreamBYOBReaderCancelCodeLength = 410; static const JSC::Intrinsic s_readableStreamBYOBReaderCancelCodeIntrinsic = JSC::NoIntrinsic; const char* const s_readableStreamBYOBReaderCancelCode = "(function (reason)\n" \ "{\n" \ " \"use strict\";\n" \ "\n" \ " if (!@isReadableStreamBYOBReader(this))\n" \ " return @Promise.@reject(@makeThisTypeError(\"ReadableStreamBYOBReader\", \"cancel\"));\n" \ "\n" \ " if (!@getByIdDirectPrivate(this, \"ownerReadableStream\"))\n" \ " return @Promise.@reject(@makeTypeError(\"cancel() called on a reader owned by no readable stream\"));\n" \ "\n" \ " return @readableStreamReaderGenericCancel(this, reason);\n" \ "})\n" \ ; const JSC::ConstructAbility s_readableStreamBYOBReaderReadCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; const JSC::ConstructorKind s_readableStreamBYOBReaderReadCodeConstructorKind = JSC::ConstructorKind::None; const int s_readableStreamBYOBReaderReadCodeLength = 762; static const JSC::Intrinsic s_readableStreamBYOBReaderReadCodeIntrinsic = JSC::NoIntrinsic; const char* const s_readableStreamBYOBReaderReadCode = "(function (view)\n" \ "{\n" \ " \"use strict\";\n" \ "\n" \ " if (!@isReadableStreamBYOBReader(this))\n" \ " return @Promise.@reject(@makeThisTypeError(\"ReadableStreamBYOBReader\", \"read\"));\n" \ "\n" \ " if (!@getByIdDirectPrivate(this, \"ownerReadableStream\"))\n" \ " return @Promise.@reject(@makeTypeError(\"read() called on a reader owned by no readable stream\"));\n" \ "\n" \ " if (!@isObject(view))\n" \ " return @Promise.@reject(@makeTypeError(\"Provided view is not an object\"));\n" \ "\n" \ " if (!@ArrayBuffer.@isView(view))\n" \ " return @Promise.@reject(@makeTypeError(\"Provided view is not an ArrayBufferView\"));\n" \ "\n" \ " if (view.byteLength === 0)\n" \ " return @Promise.@reject(@makeTypeError(\"Provided view cannot have a 0 byteLength\"));\n" \ "\n" \ " return @readableStreamBYOBReaderRead(this, view);\n" \ "})\n" \ ; const JSC::ConstructAbility s_readableStreamBYOBReaderReleaseLockCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; const JSC::ConstructorKind s_readableStreamBYOBReaderReleaseLockCodeConstructorKind = JSC::ConstructorKind::None; const int s_readableStreamBYOBReaderReleaseLockCodeLength = 447; static const JSC::Intrinsic s_readableStreamBYOBReaderReleaseLockCodeIntrinsic = JSC::NoIntrinsic; const char* const s_readableStreamBYOBReaderReleaseLockCode = "(function ()\n" \ "{\n" \ " \"use strict\";\n" \ "\n" \ " if (!@isReadableStreamBYOBReader(this))\n" \ " throw @makeThisTypeError(\"ReadableStreamBYOBReader\", \"releaseLock\");\n" \ "\n" \ " if (!@getByIdDirectPrivate(this, \"ownerReadableStream\"))\n" \ " return;\n" \ "\n" \ " if (@getByIdDirectPrivate(this, \"readIntoRequests\")?.isNotEmpty())\n" \ " @throwTypeError(\"There are still pending read requests, cannot release the lock\");\n" \ "\n" \ " @readableStreamReaderGenericRelease(this);\n" \ "})\n" \ ; const JSC::ConstructAbility s_readableStreamBYOBReaderClosedCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; const JSC::ConstructorKind s_readableStreamBYOBReaderClosedCodeConstructorKind = JSC::ConstructorKind::None; const int s_readableStreamBYOBReaderClosedCodeLength = 251; static const JSC::Intrinsic s_readableStreamBYOBReaderClosedCodeIntrinsic = JSC::NoIntrinsic; const char* const s_readableStreamBYOBReaderClosedCode = "(function ()\n" \ "{\n" \ " \"use strict\";\n" \ "\n" \ " if (!@isReadableStreamBYOBReader(this))\n" \ " return @Promise.@reject(@makeGetterTypeError(\"ReadableStreamBYOBReader\", \"closed\"));\n" \ "\n" \ " return @getByIdDirectPrivate(this, \"closedPromiseCapability\").@promise;\n" \ "})\n" \ ; #define DEFINE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \ JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \ {\ JSVMClientData* clientData = static_cast(vm.clientData); \ return clientData->builtinFunctions().readableStreamBYOBReaderBuiltins().codeName##Executable()->link(vm, nullptr, clientData->builtinFunctions().readableStreamBYOBReaderBuiltins().codeName##Source(), std::nullopt, s_##codeName##Intrinsic); \ } WEBCORE_FOREACH_READABLESTREAMBYOBREADER_BUILTIN_CODE(DEFINE_BUILTIN_GENERATOR) #undef DEFINE_BUILTIN_GENERATOR } // namespace WebCore c-embeds'>feat/markdoc-embeds Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-08-11feat: expose user astro error (#8012)Gravatar Emanuele Stoppa 6-2/+38
2023-08-11JSX refactor (#7924)Gravatar Matthew Phillips 135-801/+856
* JSX refactor * Get preact/compat test to pass * Use include config * Remove old astro flavored markdown test * Move babel dep to preact * Remove errant debugger * Update lockfile * Update the multi-framework example * Update e2e tests * Fix nested-in-vue tests * Add back in astro check * Update packages/astro/src/core/create-vite.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/astro/src/core/create-vite.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/integrations/solid/src/index.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/integrations/solid/src/index.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update .changeset/perfect-horses-tell.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Move the comment about the include config * Remove redundant alias config * Use react's own preamble code * Use the base for the preamble * Remove solid redundancy * Update .changeset/perfect-horses-tell.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update based on review comments * Oops --------- Co-authored-by: Fred K. Schott <fkschott@gmail.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-10Remove the Nelify Edge adapter (#8029)Gravatar Matthew Phillips 28-543/+27
2023-08-10Remove the Vercel Edge adapter (#8015)Gravatar Matthew Phillips 6-237/+27
* Remove the Vercel Edge adapter * Update tests * Update .changeset/plenty-keys-add.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Show enabling edge middleware --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-10Clear todos and remove css kebab handling (#8019)Gravatar Bjorn Lu 9-55/+45
2023-08-10refactor: add pipeline concept (#8020)Gravatar Emanuele Stoppa 15-78/+279
2023-08-10chore: update after mergeGravatar Emanuele Stoppa 1-13/+18
2023-08-10[ci] formatGravatar bluwy 2-3/+6
2023-08-10Move hoisted script analysis optimization as experimental (#8011)Gravatar Bjorn Lu 6-38/+88
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-10more efficient _routes.json for cloudflare integration (#7846)Gravatar Marco Schumacher 17-16/+242
* more efficient _routes.json for cloudflare integration * added tests * updated pnpm-lock.yaml * added changeset * cleaned up test * fix: convert window path separators * updated docs * handle more cases * Apply suggestions from code review Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * incorporate feedback from code review * used other pnpm version * better fallback for empty include array * adjust test case to changed fallback for empty include array * updated docs --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-09[ci] release (#8000)create-astro@3.1.12astro@2.10.4@astrojs/preact@2.2.2Gravatar Houston (Bot) 48-96/+97
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-09Support Bun by adjusting how `@babel/plugin-transform-react-jsx` is ↵Gravatar dave caruso 3-12/+15
imported. (#8007) * Support bun/other tooling that respects `__esModule` * Add changeset file
2023-08-09feat: remove @astrojs/image completely (#7922)Gravatar Erika 182-20267/+38
2023-08-09[ci] formatGravatar ElianCodes 1-14/+14
2023-08-09fixed image path and add markdown syntax in example (#7802)Gravatar Keshav Mohta 1-6/+113
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: Elian ☕️ <hello@elian.codes>
2023-08-09chore: merge from mainGravatar Emanuele Stoppa 1-0/+4
2023-08-09Remove nested JSON.stringify from props serialization (#7995)Gravatar Jany Belluz 4-29/+41
2023-08-09docs: Fix error link in markdoc (#8006)Gravatar 李瑞丰 1-1/+1
2023-08-09Fix examples check hang (#7998)Gravatar Bjorn Lu 4-5/+20
2023-08-09Preserve base slash when trailingSlash ignore (#7878)Gravatar Bjorn Lu 10-39/+42
2023-08-08fix: `EndpointOutput` type with encoding `'binary'` (#8003)Gravatar Juan Martín Seery 5-18/+28
* fix: `EndpointOutput` type with encoding `'binary'` * Changeset
2023-08-08Add shorthand for Starlight templates to `create astro` (#7993)Gravatar Chris Swithinbank 2-1/+9
* Add shorthand for Starlight templates to `create astro` * Update packages/create-astro/src/actions/template.ts * Update packages/create-astro/src/actions/template.ts --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-08chore: update prettier to `3.0` (#7957)Gravatar Emanuele Stoppa 12-47/+53
2023-08-08feat: new attribute scope style strategy (#7893)Gravatar Emanuele Stoppa 9-29/+101
2023-08-08chore: fix rebase issueGravatar Emanuele Stoppa 2-489/+555
2023-08-08Remove StreamingCompatibleResponse polyfill (#7981)Gravatar Bjorn Lu 3-82/+6
2023-08-08Remove undici dep (#7980)Gravatar Bjorn Lu 10-14/+9
2023-08-08Remove markdown component (#7931)Gravatar Bjorn Lu 88-1499/+10
2023-08-08Fix node test fail (#7950)Gravatar Bjorn Lu 14-17/+15
2023-08-08[ci] release (beta) (#7897)Gravatar Houston (Bot) 86-100/+783
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-08feat: change `compressHTML` default value to `true` (#7918)Gravatar Emanuele Stoppa 3-2/+15
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-08feat: add noop service and make integrations that needs it use it (#7903)Gravatar Erika 5-9/+41
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-08feat: use external @astrojs/check (#7892)Gravatar Erika 6-520/+160
* feat: use @astrojs/check * fix: what happened in my rebase?? * nit: adjust with feedback
2023-08-08Refactor MDX components exports handling (#7904)Gravatar Bjorn Lu 4-7/+15
2023-08-08feat: make Sharp the default image service (#7908)Gravatar Erika 4-12/+22
* feat: make Sharp the default image service * chore: lockfile
2023-08-08feat: change default port to 4321 (#7874)Gravatar Emanuele Stoppa 75-101/+108
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-08-08fix: update examples to use the new API of cookies (#7899)Gravatar Emanuele Stoppa 3-3/+3
2023-08-08ci: change release tag name (#7898)Gravatar Emanuele Stoppa 1-1/+1
2023-08-08chore: use workspace packages (#7896)Gravatar Emanuele Stoppa 2-2/+2
2023-08-08chore: use workspace packages (#7894)Gravatar Emanuele Stoppa 4-8/+8
2023-08-08Make Astro.cookies.get(key) return undefined (#7888)Gravatar Matthew Phillips 4-15/+35
2023-08-08chore: remove deleted packageGravatar Emanuele Stoppa 1-1/+0