Update dependency Jint to 4.9.0#1154
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
Conversation
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.
This PR contains the following updates:
4.8.0→4.9.0Release Notes
sebastienros/jint (Jint)
v4.9.0Highlights
Jint 4.9.0 is a large release focused on performance, CLR interop ergonomics, and ECMAScript spec coverage.
New language features
import defer * as ns from "mod"/import.defer()andimport source x from "mod"/import.source()(TC39 proposals; 346 + 428 test262 tests pass) (#2396)import txt from "./file.txt" with { type: "text" }(TC39 Stage 3; complements the existingjson/bytespaths) (#2403)Performance
The interpreter and built-ins got broad attention this release — see the v4.8.0 → v4.9.0 comparison table below for measured deltas.
Array.prototype.sort/indexOf/includes/concatand sparse-array conversion optimized (#2408)new Array(N)plusArray.Copyfast paths forshift/unshift/splice(#2451)FunctionEnvironmentpooled perJintFunctionDefinition.State(#2413)JsStringprimitive reads (#2450)CLR interop
Options.Interop.PreferJsPrototypeMethods()makes JS prototype methods win over CLR methods on wrapped objects (list.reverse()/list.sort()now do the JS thing onIList<T>) (#2440)Dictionary<string, object>(#2392)ThrowOnUnresolvedMemberno longer throws on missing dictionary keys (#2446)MissingMemberExceptionon implicit string coercion of CLR objects (#2439)JintException.TryGetJavaScriptLocation/TryGetJavaScriptCallStack, or viaJavaScriptException.Locationwhen usingCatchClrExceptions()(#2459)Correctness & spec coverage
for-ofdestructuring resume bugs fixed (#2453, #2456)Function.prototype.toString()returns the original source text for non-native functions (#2394)RegexTimeout(#2457)NumberFormatpath and a newICalendarProviderextension point (#2390, #2407, #2409, #2411, #2414, #2423)Performance: Jint 4.8.0 → 4.9.0
Same machine, same scripts, default BenchmarkDotNet settings on the v4.8.0 and v4.9.0 tags. Lower is better. Negative deltas are improvements.
Hardware: AMD Ryzen 9 5950X · Windows 11 · .NET 10.0.7 · BenchmarkDotNet 0.15.8.
Cold path —
Engine.Execute(string)(parses on every call)Cached path —
Engine.Execute(Prepared<Script>)(parse once, reuse)What's Changed
Dictionary<string, object>by @Copilot in #2392New Contributors
Full Changelog: sebastienros/jint@v4.8.0...v4.9.0
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.