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
When parsing a [^]*?(:[rp][el]a[\w-]+)[^]* regular expression, the following error occurs:
NiL.JS.Core.JSException: SyntaxError: parsing '[^]*?(:[rp][el]a[\w-]+)[^]*' - Unterminated [] set.
at NiL.JS.ExceptionHelper.Throw(Error error)
at NiL.JS.BaseLibrary.RegExp.makeRegex(String pattern, String flags)
at NiL.JS.Expressions.RegExpExpression.Evaluate(Context context)
at NiL.JS.Expressions.Assignment.Evaluate(Context context)
at NiL.JS.Statements.VariableDefinition.Evaluate(Context context)
at NiL.JS.Statements.CodeBlock.evaluateLines(Context context, Int32 i, Boolean clearSuspendData)
at NiL.JS.Statements.CodeBlock.Evaluate(Context context)
at NiL.JS.Core.Context.Eval(String code, JSValue thisBind, Boolean suppressScopeCreation)
at TestNilJs.Program.Main(String[] args) in C:\Projects\!EXPERIMENTAL\NiL.JS\TestNilJs\TestNilJs\Program.cs:line 12
This error does not occur in the latest versions of V8 and ChakraCore, but is also typical for Jurassic and Jint.
You can use the following C#-code to reproduce the error:
using System;using NiL.JS.Core;namespaceTestNilJs{classProgram{staticvoidMain(string[]args){conststringcode=@"var na = /[^]*?(:[rp][el]a[\w-]+)[^]*/;";varcontext=new Context(true);try{
context.Eval(code);}catch(JSExceptione){
Console.Write(e.ToString());}}}}
The text was updated successfully, but these errors were encountered:
Hello, Dmitry!
When parsing a
[^]*?(:[rp][el]a[\w-]+)[^]*
regular expression, the following error occurs:This error does not occur in the latest versions of V8 and ChakraCore, but is also typical for Jurassic and Jint.
You can use the following C#-code to reproduce the error:
The text was updated successfully, but these errors were encountered: