Skip to content

Commit

Permalink
Fixed type-o, and bug when looking up properties on function types.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbebenita committed May 15, 2012
1 parent 2a83f75 commit f1869ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
<script src="jc/compiler.js"></script>
<script src="jc/memory.js"></script>
<body>
<a href="https://github.com/mbebenita/Mvm"><img style="position: absolute; top: 0; right: 0; border: 0;" src="images/fork.png" alt="Fork me on GitHub"></a>
<a href="https://github.com/mbebenita/LLJS"><img style="position: absolute; top: 0; right: 0; border: 0;" src="images/fork.png" alt="Fork me on GitHub"></a>
<a href="http://mozilla.org"><img width="118" height="68" style="position: absolute; top: 0; left: 50; border: 0;" src="images/mozilla.png" alt="Mozilla"></a>
<br>
<div class="container">
<h1>LLJS : Low-Level JavaScript</h1>
<p>
<b>LLJS</b> (formelly known as *JS) is a typed dialect of JavaScript that offers a C-like type system with manual memory management.
<b>LLJS</b> (formerly known as *JS) is a typed dialect of JavaScript that offers a C-like type system with manual memory management.
It compiles to JavaScript and lets you write memory-efficient and GC pause-free code less painfully, in short, LLJS is the bastard child of JavaScript and C.
LLJS is early research prototype work, so don't expect anything rock solid just yet.

Expand Down
4 changes: 2 additions & 2 deletions src/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
var mapObject = util.mapObject;

var options = new OptionSet("Compiler Options");

var trace = options.register(new Option("t", "t", false, "Trace compiler execution."));

function isInteger(x) {
Expand Down Expand Up @@ -1119,7 +1119,7 @@
this.property = walk(this.property, scope, compileFunctions);
var oType = this.object.cType;
var pType = this.property.cType;
if (oType === types.dyn) {
if (oType === types.dyn || oType instanceof FunctionType) {
this.cType = types.dyn;
return;
}
Expand Down

0 comments on commit f1869ce

Please sign in to comment.