purekrome / ecmascript.net Goto Github PK
View Code? Open in Web Editor NEWC# Port of the Java EcmaScript project.
License: Other
C# Port of the Java EcmaScript project.
License: Other
YUICompressor.NET MSBuild task can't show the line numbers for error messages. @freeranger pointed out this is related to EcmaScript.NET.
Anyway we can fix it? I checked the source code, couldn't find any unit tests for this library. The ones in YUICompressor.NET pass.
Hi,
I have a class in the example below
public class ScriptableFeeder : ScriptableObject
{
public ScriptableFeeder() {}
public override string ClassName => "ScriptableFeeder";
public string name { get; set; }
public string username { get; set; }
public int klout { get; set; }
public int followercount { get; set; }
}
When I add the part below, I get this error : Constructor for "ScriptableFeeder" not found.
ScriptableObject.getClassPrototype(prototype, typeof(ScriptableFeeder).Name);
ScriptableFeeder feederScope = (ScriptableFeeder)context.NewObject(scope, "ScriptableFeeder");
feederScope.username = "Hakan";
feederScope.name = "Hakan";
feederScope.klout = 1;
feederScope.followercount = 100;
Can you help me? Where do I go wrong in this class?
I'm converting the java rhino application to .net. I'm trying to replicate the part below.
This java code:
ScriptableObject.defineClass(prototype, ScriptableFeeder.class);
ScriptableFeeder feederScope = (ScriptableFeeder) context.newObject(scope, "ScriptableFeeder");
Hello, I am using YUI compressor and I found that it's throw an errors with one of my custom file.
I did some debug and found that the problem inside EcmaScript.NET.
Next code will throw an error:
An unhandled exception of type 'EcmaScript.NET.EcmaScriptRuntimeException' occurred in ConsoleApplication1.exe
Additional information: missing name after . operator
static void Main(string[] args)
{
var js = @"alert(web.import);";
using (var memoryStream = new MemoryStream(Encoding.UTF8.GetBytes(js)))
{
var stream = new StreamReader(memoryStream, Encoding.UTF8);
var compilerEnvirons = new CompilerEnvirons();
var parser = new Parser(compilerEnvirons, new CustomErrorReporter());
parser.Parse(stream, null, 1);
}
}
While var js = @"alert(web.import1);";
works fine.
Attach some other examples:
var js = @"signup.package = function () { }";
var js = @"resources.web.import.validation = function () { };";
EDIT: Fixed formatting by @PureKrome
I've just minimized one of my old projects just for fun, and when trying to run it I noticed that it was broken.. The syntax got completely destroyed since I had a lot of double-slash ( // ) comments which end with the line and therefore need to be converted to /* */ comments ot have a newline eachafter for the script to stay intact ๐
Greetings,
I wanted to let you know that the compiled DLL does not pass the automated Microsoft product certification test because it does not contain a "Company" name or a "Product" name in the DLL information. Because I am unfamiliar with building DLLs in C#/.NET I wanted to report it; I will give a few shots at correcting the issue myself (editing the csproj file) to add them and make a merge request if successful.
Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.