Repository navigation
Update dependency Jint to 4.18.1 - #1192
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/jint-4.x
branch
2 times, most recently
from
September 2, 2026 12:54
09e2589 to
957ed55
Compare
renovate
Bot
force-pushed
the
renovate/jint-4.x
branch
2 times, most recently
from
September 9, 2026 19:57
c0ef7dc to
fb3e086
Compare
renovate
Bot
force-pushed
the
renovate/jint-4.x
branch
from
September 19, 2026 12:19
fb3e086 to
b218deb
Compare
renovate
Bot
force-pushed
the
renovate/jint-4.x
branch
2 times, most recently
from
September 25, 2026 10:44
23b28f0 to
23c46a2
Compare
renovate
Bot
force-pushed
the
renovate/jint-4.x
branch
2 times, most recently
from
October 7, 2026 05:57
5939aff to
c20c978
Compare
renovate
Bot
force-pushed
the
renovate/jint-4.x
branch
from
October 27, 2026 00:14
c20c978 to
35141cf
Compare
renovate
Bot
force-pushed
the
renovate/jint-4.x
branch
from
November 13, 2026 23:02
35141cf to
53acae7
Compare
renovate
Bot
force-pushed
the
renovate/jint-4.x
branch
from
November 23, 2026 06:54
53acae7 to
ccc17fb
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
4.16.0→4.18.1Release Notes
sebastienros/jint (Jint)
v4.18.1Jint 4.18.1 is a patch release from the
4.xbranch. It backports correctness and conformance fixes frommain: 17 pull requests since 4.18.0, with no new public API. Several of them change what a script observes, because Jint now does what the specification says where it did not; What might change for you below lists them.Highlights
Five spec deviations, reported together (#4581, from #4580; issue #4579, reported by @trackoor).
undefinedis read, not folded to the global value:(function (undefined) { return undefined; })('s')returns's'.{ "__proto__": proto }sets the prototype, as{ __proto__: proto }already did.parseFloat('1e5.5')stops at the second point and returns100000.String(2 ** 60)is"1152921504606847000".forEach,every,flatMapand the other array generics read the array as it is after a callbackunshifts into it.Strings.
for...of,Array.from, destructuring,Iterator.fromandArray.fromAsync:[...'\r\n'].lengthis2(#4694, from #4688; issue #4228, reported by @mkromann).String.rawconverts anundefinedsubstitution instead of dropping it, and<on two objects compares the primitives it already converted instead of converting again (#4659, from #4658; issue #4613, reported by @trackoor).Intl.Segmenterfollows Unicode UAX #29, from a pinned Unicode 17.0 table, the same on every target framework: sentence (#4675, from #4672), word (#4690, from #4686; issue #4683) and grapheme granularity (#4693, from #4691).Segments.prototype.containingfinds its segment by binary search (#4720, from #4719).Limits a host configured hold in more places.
Options.Constraints.MaxArraySizenow boundstoSorted,toReversed,withandsort, andArray.from,Iterator.prototype.toArrayand its async form, which close their iterator when the limit is passed rather than drain an endless source first (#4676, from #4665; issue #4520).Typed arrays and property definitions.
ArrayBufferfollows the proposal's internal methods: its elements are non-writable and non-configurable,definePropertyaccepts only a restatement of them, and an assignment is refused before its value is converted (strict code throws aTypeError, sloppy code does nothing) (#4730, from #4729).0as-0is a change of value: a non-writable property refuses it and a writable one stores it (#4730, from #4729).Hosts and interop.
JsonValuecrosses as the primitive it holds, and aJsonObjectorJsonArraystringifies without a cyclic-reference error; on .NET 8 and later, aJsonValuearound a CLR object no longer overflows the stack (#4689, from #4685; issue #4681).DisposableStackandAsyncDisposableStackmethods use the built-in's own realm (#4671, from #4663).Reading
undefinedin unprepared code stays as fast as in 4.18.0. The first fix above made every read ofundefinedthat the static analysis did not fold resolve through the scope chain, and code run throughExecute(string)is never analysed. Two changes close that again. Read-only globals such asundefined,NaNandInfinityare now served from the global-binding cache (#4732, from #4731). And a read ofundefinedthat has resolved to the global is folded at run time, the way the analysis folds it, with fusedx === undefinedandx == undefinedcomparisons; the fold is undone wherever a binding of that name can appear later (#4735, from #4734).Temporal.
Temporal.Duration.from('P1DT')is rejected, and aPlainMonthDaywith a year pastint.MaxValuekeeps that year's leap status (#4674, from #4669).Build and tests. The branch builds with the .NET 11 SDK (#4718, from #4373), and a stack-guard test no longer flakes on an exact-depth comparison (#4716, from #3140).
What might change for you
undefinedis now read. A script that declares one, as a parameter, avaror a catch parameter, sees its value where it used to see the globalundefined.[...s]orfor (const c of s), as in every other engine.Intl.Segmenterresults change wherever the previous segmentation differed from UAX #29.MaxArraySize, when set, now stopstoSorted,withand the other copying methods and the iterator collections with the same error other arrays past it raise.JsonValueon .NET Framework and netstandard reaches script as a string, number or boolean instead of a wrapped object.Verification
Every backport was verified failing-first: its tests ran against the unfixed
4.xtree on .NET 10 and .NET Framework 4.7.2, then again with the change. The release candidate was measured against 4.18.0 in paired rounds, alternating which build ran first in each round.math-cordicandbitops-nsieve-bits. Six more paired rounds put them at +0.70% [−0.84, +2.36] and −2.12% [−4.36, +5.86], so both 95% intervals include zero.undefinedin unprepared code: neither suite readsundefined, so a targeted benchmark measured it. Before #4735 the candidate was 10–30% slower than 4.18.0 on those reads. The final candidate reads +0.12%, +0.05% and −0.67% against 4.18.0, every 95% interval includes zero, and its control rows are unchanged.What's Changed
Full Changelog: sebastienros/jint@v4.18.0...v4.18.1
v4.18.0Jint 4.18.0 is a release from the
4.xbranch. It backports correctness and conformance fixes frommain: 44 pull requests since 4.17.0, with no new public API. It is a minor release rather than a patch because it moves the parser to Acornima 1.9.1, and because limits a host has configured,MaxArraySizeandRegexTimeout, now hold in places they did not. A script that relied on getting past them can now stop with an error. What might change for you below lists those cases and the two other changes a script can observe.Highlights
A
continueinside a labelledwhileordo-whileno longer skips the code after the loop. Ina: while (...) { ... continue; ... break a; }, an unlabelledcontinuewas compared with the loop's label even though it had none. It left the loop as a completion nothing consumed: a function returnedundefinedinstead of reaching itsreturn, and a script skipped every statement after the loop. TypeScript'stypescript.jsscanner has exactly this shape, and under 4.17.0 it silently ignored/// <reference lib>directives (#4563, from #4557; regression tests #4570; issue #4568, reported by @gentledepp). Acontinuenaming any label stacked on a loop now continues it too.Limits a host configured hold in more places.
Options.Constraints.MaxArraySizenow bounds argument lists that a spread,apply,Reflect.apply/construct, a chain of bound functions or anownKeystrap builds (#4549, from #4519), andnew Array(n)'s fast path (#4509). An engine with noMaxArraySizeset pays one byte test.RegexTimeoutnow bounds every regular expression built at run time (new RegExp(...),'x'.match('...'), the splitter@@splitbuilds), which ran under the parser package's 5 s default instead (#4465, from #3443). A regex in aPrepared<Script>now runs under the executing engine'sRegexTimeout, rather than the 10 s default baked in when the script was prepared (#4517, from #3501).ArrayBufferlength the CLR cannot allocate raises aRangeError, and amaxByteLengthit cannot allocate is rejected when the buffer is built (#4463, #4468).return()during a throw close now propagates instead of being swallowed (#4550, from #4547).Generators, async functions and iteration.
yield*throws a failing async delegate's error at theyield*, and forgets a delegation that ended by a throw (#4326, #4514).for awaitstep that settles to a non-object throws theTypeError(#4511), and an async generator records where it suspended for one (#4521).return()was swallowed (#4555).Iterator.prototype.drop(#4562) no longer read a value they skip.Symbol.iteratora script gave a wrapped CLR collection (#4575, from #4456; issue #4427).Functions, closures and exceptions.
argumentsobject that an arrow function or a directevalcaptured keeps its values after the call returns (#4565, from #4548; issue #4545).eval, as inlog => eval('() => log'), keeps its parameters reachable from what theevalcreates (#4572, from #4370; issue #4366).catchparameter's binding throws, thefinallyblock now runs before the error propagates (#4571, from #4389 by @ewerton336; issue #4336).messagethrows (#4252).Built-ins.
Promise.all,allSettledandanysettle with the specification's remaining-elements count (#4512).Promise.anybuilds itsAggregateErrordirectly (#4506).Math.powandMath.roundgive the specification's results for large integral values (#4497). BigInt shifts andasIntN/asUintNdo so for any count (#4467). An IANA Link time-zone name resolves through the zone it points to when the system lacks it (#4488).String.prototype.splitconverts a RegExp separator that has no@@split(#4578, from #4553).Intl.ListFormatiterates its argument as the specification says (#4576, from #4448; issue #4438).Intl.DurationFormatuses the specification's display defaults (#4577, from #4434 by @ewerton336).Hosts and interop.
IReadOnlyDictionary<string, T>whoseKeysis not a collection now enumerates (#4560, from #4551).s += tthat a host reads from several threads while the engine is idle can no longer show the text from before its last appends on ARM64 (#4573, from #4255; issue #4171).stackproperty, and an engine-raised error'sstackcan be replaced in strict code (#4574, from #4446 by @michaelthyregod; issue #4430).JavaScriptException's stack trace for the host is unchanged.Parser. Acornima 1.7.0 → 1.9.1 (#4321, #4464).
What might change for you
MaxArraySizeset, an argument list ornew Array(n)past it now throws; an engine that does not set it is unaffected. A regex built at run time now times out atRegexTimeout(10 s unless you set it) instead of at the parser package's 5 s, and a regex in a prepared script at the executing engine'sRegexTimeoutinstead of 10 s.e.stackon a thrown non-Error object is now whatever the object itself has (usuallyundefined), as in V8, instead of a string Jint added.Intl.DurationFormatshows some zero units the specification says to show:new Intl.DurationFormat('en', { style: 'digital' }).format({ seconds: 1 })is"0:00:01", not"00:01". A numeric sub-second unit with its display set to"always"is now aRangeError.Verification
Every backport was verified failing-first: its tests ran against the unfixed
4.xtree on .NET 10 and .NET Framework 4.7.2, then again with the change. The release candidate was measured against 4.17.0 on all 50 SunSpider and Dromaeo rows in three paired rounds, alternating which build ran first in each round. The median row moved +0.25%, and per-row allocation moved by at most 1.4% (string-validate-input, which allocates less), and by under 0.2% on almost every row. Five rows read more than 1% slower in all three pairs. They were measured again in six more paired rounds, beside other engines' rows from the same benchmark class, whose packages are identical in both builds and so serve as a same-binary control. That control drifted by +1.2% to +6.8% per round against the candidate, so the machine's noise in that window was larger than the 1% this gate looks for. Corrected for it, no row regressed: every row's 95% interval includes zero.What's Changed
Full Changelog: sebastienros/jint@v4.17.0...v4.18.0
v4.17.0Jint 4.17.0 is a release from the
4.xbranch. It backports correctness and conformance fixes frommain(four of them for scripts that could end the host process), linear string building, and two new opt-in APIs for hosts. That is why it is a minor release rather than a patch. Nothing in it changes an existing API or an existing default, so it is a drop-in update from 4.16.4.Highlights
A pooled engine can let go of a finished request's objects. Hosts that reuse one engine across many evaluations (
CaptureGlobalSnapshotonce,RestoreGlobalSnapshotbetween runs) keep the interpreter's warmed caches, and that is the point of reusing it. But a warmed call site remembers the last function it called, and a warmed member read remembers the last object it read from. In a pooled web host, that can be a delegate built from a finished request's services, which then stay alive until the same script runs again. The newEngine.Advanced.DiscardInterpreterCaches()drops those caches, so the objects can be collected. The engine, its intrinsics and its global object stay as they are. The next run of each script rebuilds its cache, which costs roughly what a first run on a new engine costs, minus building the engine. A good place to call it is when an engine has been idle for a while, rather than after every use (#4229, from #4227).A host can carry its own state across
await. Jint now runs ECMAScript's HostMakeJobCallback and HostCallJobCallback steps for every promise reaction, every thenable job and theFinalizationRegistrycleanup callback. A host can take part through the newOptions.Host.JobCallbacks, which accepts aJobCallbackHookswithCapture,EnterandExitcallbacks. That lets each branch of aPromise.allfan-out keep its own host context, such as a logging scope or ambient request data, through everyawait(#4231, from #4230; issue #4200). The default is no hooks, in which case each promise registration costs one null check and nothing a script can observe changes.Four more ways for a script to end the host process are closed.
TypeErrorcopy from inside thecatchthat was handling the original failure. That added a nested exception dispatch at every hop, and no stack check could see it. Even with the stack-overflow guard on, a long chain of wrapped functions ended the process on the way back out, and a three-line script with anamegetter needed no chain at all. Building that copy also ran script (toString, getters, proxy traps); it no longer does. A failedimportValuenow reports the import failure instead of an unrelated error (#4220, from #4176 and #4183).instanceofandeval.instanceofnow checks the native stack before calling a customSymbol.hasInstancemethod, andevalchecks it before parsing. A self-referencingSymbol.hasInstance, orvar s = 'eval(s)'; eval(s), now raises aRangeErrorthe script can catch instead of ending the process. On theMaxExecutionStackCountpath,evalalso stopped hopping to a new thread at each overflow without ever throwing.instanceofover a bound function now consults every bound link's ownSymbol.hasInstance, as the specification requires (#4221, from #4172, #4184 and #4187).Options.Constraints.StackOverflowGuardis on, so turn it on for any script you do not fully trust.Building a string with
s = s + xis linear. A+whose result reaches 512 characters now produces a deferred string instead of copying both sides. Building withs = s + x,s = x + sands = s + a + btherefore becomes linear, ass += xalready was. Short concatenations take a separate path and pay nothing for this. The deferred string is safe to read from several engines that share onePrepared<Script>, and it is charged toLimitMemorywhen it is built, so a memory limit still bounds it. Binding an already-bound function also no longer copies its whole"bound …"name at every level (#4160, from #3386, #3571, #4130, #4164 and #4173).Array.prototype.concatspreads host arrays and lists. Since 4.14, CLR arrays and lists reach script as live views by default.concatadded such a view as a single element instead of spreading its items, soa.concat(b)returned the two wrappers. It now spreads anything script sees as an array (#4219, from #4216; issue #4201).TypedArray.prototype.withsurvives a shrinking coercion. When converting the index or the value made a resizable buffer shorter,withcopied past its new end and let a CLRArgumentExceptionescape. It now copies only what the buffer still holds (#4218, from #4157).Verification
Every backport was verified failing-first: its tests were run against the unfixed
4.xtree on .NET 10 and .NET Framework 4.7.2, then with the change. The release candidate was measured against 4.16.4 on SunSpider and Dromaeo in six paired rounds, alternating which build ran first in each round. The four DromaeoObjectRegExprows ran 12–15% faster and SunSpider's3d-raytrace2.3% faster. No row regressed by 1% or more; the two rows whose interval did not include zero (one DromaeoCubevariant, +0.70%, and SunSpider'scontrolflow-recursive, +0.88%) are within this machine's run-to-run noise.What's Changed
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.