/* * 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 #pragma once #include #include #include #include namespace JSC { class FunctionExecutable; } namespace WebCore { /* TransformStreamDefaultController */ extern const char* const s_transformStreamDefaultControllerInitializeTransformStreamDefaultControllerCode; extern const int s_transformStreamDefaultControllerInitializeTransformStreamDefaultControllerCodeLength; extern const JSC::ConstructAbility s_transformStreamDefaultControllerInitializeTransformStreamDefaultControllerCodeConstructAbility; extern const JSC::ConstructorKind s_transformStreamDefaultControllerInitializeTransformStreamDefaultControllerCodeConstructorKind; extern const char* const s_transformStreamDefaultControllerDesiredSizeCode; extern const int s_transformStreamDefaultControllerDesiredSizeCodeLength; extern const JSC::ConstructAbility s_transformStreamDefaultControllerDesiredSizeCodeConstructAbility; extern const JSC::ConstructorKind s_transformStreamDefaultControllerDesiredSizeCodeConstructorKind; extern const char* const s_transformStreamDefaultControllerEnqueueCode; extern const int s_transformStreamDefaultControllerEnqueueCodeLength; extern const JSC::ConstructAbility s_transformStreamDefaultControllerEnqueueCodeConstructAbility; extern const JSC::ConstructorKind s_transformStreamDefaultControllerEnqueueCodeConstructorKind; extern const char* const s_transformStreamDefaultControllerErrorCode; extern const int s_transformStreamDefaultControllerErrorCodeLength; extern const JSC::ConstructAbility s_transformStreamDefaultControllerErrorCodeConstructAbility; extern const JSC::ConstructorKind s_transformStreamDefaultControllerErrorCodeConstructorKind; extern const char* const s_transformStreamDefaultControllerTerminateCode; extern const int s_transformStreamDefaultControllerTerminateCodeLength; extern const JSC::ConstructAbility s_transformStreamDefaultControllerTerminateCodeConstructAbility; extern const JSC::ConstructorKind s_transformStreamDefaultControllerTerminateCodeConstructorKind; #define WEBCORE_FOREACH_TRANSFORMSTREAMDEFAULTCONTROLLER_BUILTIN_DATA(macro) \ macro(initializeTransformStreamDefaultController, transformStreamDefaultControllerInitializeTransformStreamDefaultController, 0) \ macro(desiredSize, transformStreamDefaultControllerDesiredSize, 0) \ macro(enqueue, transformStreamDefaultControllerEnqueue, 1) \ macro(error, transformStreamDefaultControllerError, 1) \ macro(terminate, transformStreamDefaultControllerTerminate, 0) \ #define WEBCORE_BUILTIN_TRANSFORMSTREAMDEFAULTCONTROLLER_INITIALIZETRANSFORMSTREAMDEFAULTCONTROLLER 1 #define WEBCORE_BUILTIN_TRANSFORMSTREAMDEFAULTCONTROLLER_DESIREDSIZE 1 #define WEBCORE_BUILTIN_TRANSFORMSTREAMDEFAULTCONTROLLER_ENQUEUE 1 #define WEBCORE_BUILTIN_TRANSFORMSTREAMDEFAULTCONTROLLER_ERROR 1 #define WEBCORE_BUILTIN_TRANSFORMSTREAMDEFAULTCONTROLLER_TERMINATE 1 #define WEBCORE_FOREACH_TRANSFORMSTREAMDEFAULTCONTROLLER_BUILTIN_CODE(macro) \ macro(transformStreamDefaultControllerInitializeTransformStreamDefaultControllerCode, initializeTransformStreamDefaultController, ASCIILiteral(), s_transformStreamDefaultControllerInitializeTransformStreamDefaultControllerCodeLength) \ macro(transformStreamDefaultControllerDesiredSizeCode, desiredSize, "get desiredSize"_s, s_transformStreamDefaultControllerDesiredSizeCodeLength) \ macro(transformStreamDefaultControllerEnqueueCode, enqueue, ASCIILiteral(), s_transformStreamDefaultControllerEnqueueCodeLength) \ macro(transformStreamDefaultControllerErrorCode, error, ASCIILiteral(), s_transformStreamDefaultControllerErrorCodeLength) \ macro(transformStreamDefaultControllerTerminateCode, terminate, ASCIILiteral(), s_transformStreamDefaultControllerTerminateCodeLength) \ #define WEBCORE_FOREACH_TRANSFORMSTREAMDEFAULTCONTROLLER_BUILTIN_FUNCTION_NAME(macro) \ macro(desiredSize) \ macro(enqueue) \ macro(error) \ macro(initializeTransformStreamDefaultController) \ macro(terminate) \ #define DECLARE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \ JSC::FunctionExecutable* codeName##Generator(JSC::VM&); WEBCORE_FOREACH_TRANSFORMSTREAMDEFAULTCONTROLLER_BUILTIN_CODE(DECLARE_BUILTIN_GENERATOR) #undef DECLARE_BUILTIN_GENERATOR class TransformStreamDefaultControllerBuiltinsWrapper : private JSC::WeakHandleOwner { public: explicit TransformStreamDefaultControllerBuiltinsWrapper(JSC::VM& vm) : m_vm(vm) WEBCORE_FOREACH_TRANSFORMSTREAMDEFAULTCONTROLLER_BUILTIN_FUNCTION_NAME(INITIALIZE_BUILTIN_NAMES) #define INITIALIZE_BUILTIN_SOURCE_MEMBERS(name, functionName, overriddenName, length) , m_##name##Source(JSC::makeSource(StringImpl::createWithoutCopying(s_##name, length), { })) WEBCORE_FOREACH_TRANSFORMSTREAMDEFAULTCONTROLLER_BUILTIN_CODE(INITIALIZE_BUILTIN_SOURCE_MEMBERS) #undef INITIALIZE_BUILTIN_SOURCE_MEMBERS { } #define EXPOSE_BUILTIN_EXECUTABLES(name, functionName, overriddenName, length) \ JSC::UnlinkedFunctionExecutable* name##Executable(); \ const JSC::SourceCode& name##Source() const { return m_##name##Source; } WEBCORE_FOREACH_TRANSFORMSTREAMDEFAULTCONTROLLER_BUILTIN_CODE(EXPOSE_BUILTIN_EXECUTABLES) #undef EXPOSE_BUILTIN_EXECUTABLES WEBCORE_FOREACH_TRANSFORMSTREAMDEFAULTCONTROLLER_BUILTIN_FUNCTION_NAME(DECLARE_BUILTIN_IDENTIFIER_ACCESSOR) void exportNames(); private: JSC::VM& m_vm; WEBCORE_FOREACH_TRANSFORMSTREAMDEFAULTCONTROLLER_BUILTIN_FUNCTION_NAME(DECLARE_BUILTIN_NAMES) #define DECLARE_BUILTIN_SOURCE_MEMBERS(name, functionName, overriddenName, length) \ JSC::SourceCode m_##name##Source;\ JSC::Weak m_##name##Executable; WEBCORE_FOREACH_TRANSFORMSTREAMDEFAULTCONTROLLER_BUILTIN_CODE(DECLARE_BUILTIN_SOURCE_MEMBERS) #undef DECLARE_BUILTIN_SOURCE_MEMBERS }; #define DEFINE_BUILTIN_EXECUTABLES(name, functionName, overriddenName, length) \ inline JSC::UnlinkedFunctionExecutable* TransformStreamDefaultControllerBuiltinsWrapper::name##Executable() \ {\ if (!m_##name##Executable) {\ JSC::Identifier executableName = functionName##PublicName();\ if (overriddenName)\ executableName = JSC::Identifier::fromString(m_vm, overriddenName);\ m_##name##Executable = JSC::Weak(JSC::createBuiltinExecutable(m_vm, m_##name##Source, executableName, s_##name##ConstructorKind, s_##name##ConstructAbility), this, &m_##name##Executable);\ }\ return m_##name##Executable.get();\ } WEBCORE_FOREACH_TRANSFORMSTREAMDEFAULTCONTROLLER_BUILTIN_CODE(DEFINE_BUILTIN_EXECUTABLES) #undef DEFINE_BUILTIN_EXECUTABLES inline void TransformStreamDefaultControllerBuiltinsWrapper::exportNames() { #define EXPORT_FUNCTION_NAME(name) m_vm.propertyNames->appendExternalName(name##PublicName(), name##PrivateName()); WEBCORE_FOREACH_TRANSFORMSTREAMDEFAULTCONTROLLER_BUILTIN_FUNCTION_NAME(EXPORT_FUNCTION_NAME) #undef EXPORT_FUNCTION_NAME } } // namespace WebCore ing Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2025-02-04fix: ignore trailing slash for endpoints with file extensions (#13131)Gravatar Matt Kane 3-12/+34
* fix: ignore trailing slash for endpoints with file extensions * Fix test
2025-02-04fix: correct handling of collapsing slashes (#13130)Gravatar Matt Kane 7-9/+57
2025-02-03chore(preact): upgrade @preact/preset-vite (#12950)Gravatar Hugo Nogueira 4-44/+35
Co-authored-by: Matt Kane <m@mk.gg> Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2025-01-31[ci] release (#13114)astro@5.2.3Gravatar Houston (Bot) 29-62/+57
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-31[ci] formatGravatar Emanuele Stoppa 3-7/+5
2025-01-31fix(i18n): server island request (#13112)Gravatar Emanuele Stoppa 13-11/+126
Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
2025-01-31fix: correctly handle pathname for dynamic routing in rewrite (#13113)Gravatar unprintable123 10-2/+99
2025-01-31[ci] formatGravatar Matt Kane 1-1/+0
2025-01-31fix: remove special handling for injected endpoint slashes (#13111)Gravatar Matt Kane 3-2/+67
2025-01-31fix(deps): update all non-major dependencies (#13074)Gravatar renovate[bot] 66-683/+707
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-01-31[ci] release (#13108)astro@5.2.2Gravatar Houston (Bot) 27-52/+53
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-31fix: exclude tailwind package when installing integration (#13106)Gravatar Matt Kane 2-7/+20
* fix: exclude tailwind package when installing integration * Update .changeset/green-sloths-switch.md --------- Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2025-01-30[ci] release (#13096)astro@5.2.1Gravatar Houston (Bot) 27-52/+53
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-30[ci] formatGravatar Matt Kane 2-2/+1
2025-01-30fix: exclude Vite requests from trailing slash handling (#13095)Gravatar Matt Kane 3-0/+14
* fix: exclude Vite requests from trailing slash handling * Add test * remove extraneous config file * Update changeset
2025-01-30[ci] release (#13086)astro@5.2.0@astrojs/tailwind@6.0.0@astrojs/mdx@4.0.8@astrojs/markdown-remark@6.1.0@astrojs/markdoc@0.12.8@astrojs/internal-helpers@0.5.0Gravatar Houston (Bot) 45-185/+195
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-30[ci] release (#520)Gravatar github-actions[bot] 2-1/+9
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-30fix: use vercel routing utils (#525)Gravatar Matt Kane 7-97/+119
* fix: use vercel routing utils * changeset * log error * Format * Update changeset * Update tests * Changes from review * Format
2025-01-30chore: remove lit from readme (#13092)Gravatar Emanuele Stoppa 1-1/+0
2025-01-30[ci] formatGravatar Thom van den Akker 1-6/+16
2025-01-30feat: content layer typings (#12666)Gravatar Thom van den Akker 2-24/+20
* Add additional typings for referenced content collection entries * Add changeset * Default typings to string for easier use --------- Co-authored-by: Matt Kane <m@mk.gg>
2025-01-29docs: update `integrations` JSDoc to replace Tailwind integration (#13089)Gravatar Armand Philippot 1-3/+3
2025-01-29chore: upgrade Vite and update tests (#13076)Gravatar 翠 / green 14-101/+102
* chore: upgrade Vite and update tests * chore: bump vite in other package.json as well * chore: pnpm dedupe --------- Co-authored-by: Matt Kane <m@mk.gg>
2025-01-29[ci] formatGravatar Emanuele Stoppa 1-1/+0
2025-01-29fix: docs and types (#13087)Gravatar Emanuele Stoppa 6-27/+28
2025-01-29[ci] formatGravatar Matt Kane 10-22/+22
2025-01-29feat: redirect trailing slashes on on-demand rendered pages (#12994)Gravatar Matt Kane 17-25/+434
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com> Co-authored-by: matthewp <361671+matthewp@users.noreply.github.com> Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com> Co-authored-by: bluwy <34116392+bluwy@users.noreply.github.com>
2025-01-29feat(routing): external redirects (#12979)Gravatar Emanuele Stoppa 7-42/+114
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com> Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com> Co-authored-by: yanthomasdev <61414485+yanthomasdev@users.noreply.github.com>
2025-01-29feat: new virtual module `astro:config` (#13084)Gravatar Emanuele Stoppa 48-142/+822
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> Co-authored-by: Matt Kane <m@mk.gg> Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com> Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com> Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com> Co-authored-by: yanthomasdev <61414485+yanthomasdev@users.noreply.github.com>
2025-01-29feat(tailwind): support v4 (#13049)Gravatar Florian Lefebvre 40-265/+547
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2025-01-29feat(markdown): add support for TOML frontmatter in Markdown files. (#12850)Gravatar Colin Bate 5-12/+141
2025-01-27[ci] release (#13056)astro@5.1.10@astrojs/react@4.2.0Gravatar Houston (Bot) 32-90/+86
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-24chore: fix a typo in the action message (#13063)Gravatar Matt Kane 1-1/+1
2025-01-24chore: adds wontfix label action (#13062)Gravatar Matt Kane 1-0/+17
* chore: adds wontfix label action * Wording * Update .github/workflows/issue-labeled.yml Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com> --------- Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2025-01-24fix: correctly handle multiple wildcard path aliases (#13059)Gravatar Matt Kane 8-7/+35
2025-01-24[ci] formatGravatar Arturo Silva 1-3/+10
2025-01-24Adds experimental support for disabling streaming (#13036)Gravatar Arturo Silva 3-6/+46
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> Co-authored-by: Matt Kane <m@mk.gg> Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2025-01-24fix: correct broken import formatting (#13058)Gravatar Matt Kane 2-3/+7
2025-01-24Fix get relative locale (#13045)Gravatar mtwilliams 3-5/+85
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2025-01-23[ci] release (#13027)astro@5.1.9@astrojs/alpinejs@0.4.3Gravatar Houston (Bot) 33-75/+68
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-23fix(vercel): update middleware esbuild settings (#519)Gravatar Matt Kane 2-2/+11
* fix(vercel): update middleware esbuild settings * Update target