This website works better with JavaScript.
Explore
Help
Sign In
github
/
boa
mirror of
https://github.com/boa-dev/boa.git
Watch
1
Star
0
Fork
You've already forked boa
0
Code
Issues
Releases
Wiki
Activity
Rust编写的JavaScript引擎,该项目是一个试验性质的项目。
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2286
Commits
26
Branches
26
Tags
692 MiB
Tree:
85a253e168
add-ic-to-global-get-name
add-vhs-ci
benchmarks
control-flow-graph
expect-lints
feature/node_span
feature/snapshot
features
gh-readonly-queue/main/pr-2877-b0ddf5eed00a53281d67fc7d846233fc0d99ce9c
gh-readonly-queue/main/pr-3144-8e48cec73fae708420b9af88813d4870243c491a
impl-temporal-valueof-methods
impl-temporal-zoneddatetime
main
nan-boxing
optimization/static-shapes
patch-time-duration-constructors
real_conformance
refactor/interner
refactor/register-vm
releases/0.17
releases/0.19
semver_checks
tco
update-integer-conversion
utility-crate
wasm-debugger
nightly
v0.10
v0.11
v0.12
v0.13
v0.14
v0.15
v0.16
v0.17
v0.17.1
v0.17.2
v0.17.3
v0.18
v0.19
v0.19.1
v0.2.0
v0.2.1
v0.20
v0.3.0
v0.4.0
v0.5.0
v0.5.1
v0.6.0
v0.7.0
v0.8.0
v0.9.0
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from '85a253e168'
${ noResults }
boa
/
boa_icu_provider
/
data
/
min
/
any.rs
3 lines
53 B
Raw
Normal View
History
Unescape
Escape
Optimize `String.prototype.normalize` (#2848) We currently use `unicode_normalization` to handle the `String.prototype.normalize` method. However, the crate doesn't support UTF-16 as a first class string, so we had to do some hacks by converting the valid parts of a string to UTF-8, normalizing each one, encoding back to UTF-16 and concatenating everything with the unpaired surrogates within. All of this is obviously suboptimal for performance, which is why I leveraged the `icu_normalizer`, which does support UTF-16 input, to replace our current implementation. Additionally, this allows users to override the default normalization data if the `intl` feature is enabled by providing the required data in the `BoaProvider` data provider.
2 years ago
// @generated
impl_any_provider
!
(
BakedDataProvider
)
;