[builtins] Consult codegen callback per-argument in CreateDynamicFunction Consult ModifyCodeGenerationFromStringsCallback for each non-string parameter and body argument before ToString(). If the callback does not provide a replacement,ToString() remains the fallback. Add coverage for callback replacement, ToString() fallback, callback invocation counts, and the no-callback path. This depends on the Chromium TestExpectations CL: https://chromium-review.googlesource.com/c/chromium/src/+/8253451 I've verified against a Chromium build with this patch; relevant WPT trusted-types tests pass. Follow-up: split out a dedicated GetCodeForEvalCallback rather than reusing the existing struct-returning callback per argument. Bug: 542045675 Bug: 540020372 Change-Id: I317b34c435dbb3e019bfafc93b75d10ddd763bc2 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8252307 Reviewed-by: Olivier Flückiger <olivf@chromium.org> Commit-Queue: Dmitry Bezhetskov <dima00782@gmail.com> Reviewed-by: Camillo Bruni <cbruni@chromium.org> Cr-Commit-Position: refs/heads/main@{#110013}
V8 is Google's open source JavaScript engine.
V8 implements ECMAScript as specified in ECMA-262.
V8 is written in C++ and is used in Chromium, the open source browser from Google.
V8 can run standalone, or can be embedded into any C++ application.
V8 Project page: https://v8.dev/docs
Checkout depot tools, and run
fetch v8
This will checkout V8 into the directory v8 and fetch all of its dependencies. To stay up to date, run
git pull origin
gclient sync
For fetching all branches, add the following into your remote configuration in .git/config:
fetch = +refs/branch-heads/*:refs/remotes/branch-heads/*
fetch = +refs/tags/*:refs/tags/*
Please follow the instructions mentioned at v8.dev/docs/contribute.