You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing a project that uses JavaScript to personalize the business logic.
As a fallback to ClearScript for non-windows platforms I support also Jint (until ClearScript will support other platforms, then I won't have to work with 2 engines anymore).
Doing some tests on null I stumbled upon the conversion of undefined parameters in ClearScript.Undefined.
I understand that there are valid reasons to convert undefined to an object ClearScript.Undefined but I like much more the Jint approach to convert all to null, that is also more compatible between engines.
Then I propose a new switch to be able to convert all to null instead of ClearScript.Undefined.
I've prepared a fiddle to show a working test case (with the other engine).
Thanks for what you could do about my proposal.
The text was updated successfully, but these errors were encountered:
…Hub Issue #160); fixed 64-bit V8 initialization on Azure App Service (GitHub Issue #166); enabled DirectAccess for ComVisible .NET objects (GitHub Issue #161); added ScriptEngine.ExposeHostObjectStaticMembers (GitHub Issue #152); added ScriptEngine.UndefinedImportValue and made Undefined.Value public (GitHub Issue #154); enhanced ExtendedHostFunctions.typeLibEnums to pull in external enumerations; added thread affinity enforcement in WindowsScriptEngine.Dispose; eliminated KeyNotFoundException when checking for system documents (GitHub Issue #169); enabled the use of the application's root folder as a backup for its local data folder (GitHub Issue #171); reduced minimum CPU profile and heap size sampling intervals to 125 ms; updated deployment and API documentation, resolving GitHub Issues #158 and #159. Tested with V8 8.1.307.28.
I'm writing a project that uses JavaScript to personalize the business logic.
As a fallback to ClearScript for non-windows platforms I support also Jint (until ClearScript will support other platforms, then I won't have to work with 2 engines anymore).
Doing some tests on null I stumbled upon the conversion of undefined parameters in
ClearScript.Undefined
.I understand that there are valid reasons to convert undefined to an object
ClearScript.Undefined
but I like much more the Jint approach to convert all to null, that is also more compatible between engines.Then I propose a new switch to be able to convert all to null instead of
ClearScript.Undefined
.I've prepared a fiddle to show a working test case (with the other engine).
Thanks for what you could do about my proposal.
The text was updated successfully, but these errors were encountered: