Coder Social home page Coder Social logo

ecmascript-net's People

Contributors

levitation avatar

Watchers

 avatar  avatar

ecmascript-net's Issues

Wrong code, prevents calling CLI methods with 2+ int params

What steps will reproduce the problem?
1. make CLI "public static void a(int a, int b, int c)" accessible from 
script
2. call "a(1,2,3)" from script

Result:
EcmaScriptRuntimeException "Cannot convert  to int ((init)#161)"

Fix:
EcmaScript.NET/Types/Cli/CliMethodInfo.cs, Call method, ~line 113 and 122

                    args = new object [i + 1]; // wrong, args cleared
                    args.CopyTo (args, 0);
                    args [i] = dummyArg;

replaced with:
                    object[] args2 = new object [i + 1];
                    args.CopyTo (args2, 0);
                    args2 [i] = dummyArg;
                    args = args2;

(+also else branch)

Original issue reported on code.google.com by [email protected] on 2 Oct 2009 at 1:44

NodeFactory.cs has a bug

When parse a javascript witch contains a function ;
the body of function will not be parse info the tree;

In method initFunction(line 303)
//code
fnNode.addChildToBack (statements);

shuld be move to line 343 like this:
//code
result.addChildToBack(statements);

is that true?

Original issue reported on code.google.com by [email protected] on 19 Sep 2008 at 9:51

FAILED TestCase: ecma - Array - 15.4.4.3-1 Array.prototype.join()

Section: ecma
Group: Array
Test: 15.4.4.3-1 Array.prototype.join()

(new Array( Boolean(true), Boolean(false), null,  void 0, Number(1e+21), 
Number(1e-7))).join() = true,false,,,1e+21,1e-07 FAILED! expected: 
true,false,,,1e+21,1e-7

ScriptConvert.cs::ToString (double val, int toBase) fails to return ECMA 
9.8.1 compliant double strings when it comes to exponential written 
numbers.

Original issue reported on code.google.com by [email protected] on 3 Jan 2007 at 12:54

FAILED TestCase: ecma_3 - Date - 15.9.5.5 Date.prototype.toLocaleString()

All Date tests are supposed to run only correct on english locale. Still 
we have some wired off by one hour errors in the following test cases:

15.9.5.5 Date.prototype.toLocaleString()

Date.parse(Thu Jan 01 1970 01:00:00 GMT+0100 (+01:00)).toLocaleString()) 
= -3600000 FAILED! expected: 0
Date.parse(Thu Jan 01 1970 02:00:00 GMT+0100 (+01:00)).toLocaleString()) = 
0 FAILED! expected: 3600000

Also affected:

15.9.5.6 Date.prototype.toLocaleDateString()
15.9.5.7 Date.prototype.toLocaleTimeString()

I'm not sure wether this is a bug in the runner or a bug in the 
BuiltinDate.cs class.

Original issue reported on code.google.com by [email protected] on 3 Jan 2007 at 1:09

Wrap System.String

When a CliObject function return string like below code:

// C#
class Some : CliObject
{
  public string advice()
  {
    return "Help";
  }
}

the Context.Wrap() function wraps string as a CliObject. It prevents using 
build-in string functions like .toLowerCase():

// javascript
print(some.advice().toLowerCase());

Adding the following lines to Conext class just after "if 
(staticType.IsPrimitive)" seems to solve the problem:

if (staticType == typeof(string))
    return obj;



Original issue reported on code.google.com by [email protected] on 5 Jun 2009 at 4:28

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.