JScript Runtime error in Windows 11 24H2

Amit Kanase (akanase) 10 Reputation points
2024-12-13T17:50:15.4666667+00:00

Hi team,

We have been facing issues with Windows 11 24H2 Upgrade with our JScript code.

As we observed the reason being is the Jscript.DLL, We get to know that old Jcript.DLL is being replaced with new Jscript9Legacy.DLL for remediation of vulnerabilities.

And this new DLL doesn't have all support for functions/features supported by old DLL. especially dynamic link between method calls in JScript and its definition which is written in Delphi for windows application.

Can you please share the information or any links which can be referred to get all the details about the vulnerabilities in which functions/features it was reported for Old Jscript.DLL.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,451 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. Apparo Uppuluri (auppulur) 0 Reputation points
    2024-12-14T10:07:04.0133333+00:00

    I am also facing the same issue with new Jscript9legacy.dll in Windows11 24H2 version. But in 23H2 windows 11 everything is working fine and its loading Jscript.dll to run the Jscript code from our application. Is there any solution to fix these issues instead of adding JscriptReplacement from Registry?

    Can we get these fixes in upcoming patch releases?

    0 comments No comments

  2. dcage 0 Reputation points
    2024-12-19T02:04:26.2433333+00:00

    Sorry My English is weak.

    I was in a similar situation

    There is a problem with "ByteArray" in JScript.dll

    If the length of data is an odd number, an error will occur

    (VB Script)binary length 1 -> (JScript)ByteArray length 0 (Why?)

    (VB Script)binary length 3 -> (JScript)ByteArray length 2 (Why?)

    [VB Script]
    
    binary = MidB(a , (PosEnd + 4), PosClose - (PosEnd + 4) - 2) 
    //<---Print binary length is 3
    
    Set b= CreateBinary()
    b.ByteArray = binary 
    //<----- Print b.ByteArray length is 2, why?
    
    
    [JScript]
    function CreateBinary()
    { 
    	return new Init() 
    }
    function Init()
    {
    	this.ByteArray = null
    }
    
    0 comments No comments

  3. 0 Reputation points
    2024-12-20T07:36:44.9866667+00:00

    There is a JScript-based MVC framework of classic asp.

    https://github.com/sometiny/MoAspEnginer

    It is well running on the windows 7 or 10,and Server 2016/2019, but not on Windows 11 24H2.

    The error message is this bellow:

    20241220-133009-5u

    The JScript script engine version on Windows 10 is JScript 5.8.16384

    The JScript script engine version on Windows 11 is JScript 11.0.16384


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.