js Engine Invalid regular expression
does js Engine support https://github.com/facebook/regenerator/blob/main/LICENSE ? it just run into fault.
Describe the bug
Jint.Engine engine7 = new Jint.Engine(); Window window7 = new Window(engine7); window7.document = d.HtmlDocument; window7.InitializeEngine();
engine7.SetValue("document", d.HtmlDocument); foreach (var script in d.Scripts) { try { var result = engine7.Execute(script.JavascriptString); } catch(Exception ex) { Console.Write($"{ex.Message}"); } }
To Reproduce run the code above, it fails everytime
Expected behavior script can be executed sussfully
Stack trace Line 92: Invalid regular expression
Desktop (please complete the following information):
windows .NET 4.8 Version BrowseSharp-0.1.2-alpha Additional context line 91: /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
line 92: i=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@https://github.com/iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function h(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:T(e,n,s)}),a}function