Code Monkey home page Code Monkey logo

ecmascript.net's Introduction

ecmascript.net's People

Contributors

purekrome avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ecmascript.net's Issues

Constructor for T not found.

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");

"missing name after . operator" issue

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

// Comments not getting converted to /* */

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 ๐Ÿ˜„

Microsoft Certification issue

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.