New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed a errors that occurred during running unit tests for .NET Framework 4.5 version #123
Conversation
What errors are you seeing, exactly? I tried switching to your PR branch but I had no errors when running the unit tests. |
Hello, Paul! Errors in unit tests for .NET Framework 4.5 version was caused by the following block of code from a #if ENABLE_DEBUGGING
if (name != null)
local.SetLocalSymInfo(name);
#endif I removed this block of code. |
This is going to result in poorer debugging support though, right? What error message are you getting? |
If run a Unit Tests project, that targeted on .NET Framework 4.6.1, by using the following command:
Then get the following errors (see a full version in the
|
Any ideas how to fix these errors? |
If you're getting |
This is a normal test practice for a multi-target project. |
You can get this error in .NET Framework 4.5 version of Jurassic, even if you run the simplest console application: using Jurassic;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
var engine = new ScriptEngine();
engine.Execute("var engines = ['Chakra', 'Jurassic', 'SpiderMonkey', 'V8'];");
}
}
} This error is caused by the following block of code from a if (name != null)
local.SetLocalSymInfo(name); This block of code is never called in .NET Standard 2.0 version of Jurassic. For a long time this block was commented out. |
You're right, I apologize. I've checked in a fix that preserves the debugging functionality (67740c1). |
Thanks! |
No description provided.