levitation / ecmascript-net Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/ecmascript-net
Automatically exported from code.google.com/p/ecmascript-net
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
Section: ecma
Group: String
Test: 15.5.4.12-1 String.prototype.toUpperCase()
var s = new String( String.fromCharCode(383) ); s.toUpperCase().charCodeAt
(0) = 383 FAILED! expected: 83
I have no idea how or why javascript expects "83" instead of 383.
Original issue reported on code.google.com by [email protected]
on 3 Jan 2007 at 12:56
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
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
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
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
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.