repo.or.cz
/
tinyjs-rewrite.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
formatting 90% done; encapsulated everything in the TinyJS namespace, and renamed...
[tinyjs-rewrite.git]
/
.svn
/
pristine
/
6c
/
6c6063591602b23d43faa8f31867991e7c0f93dc.svn-base
blob
7fd5d0daef1e61ba9900e7dcfcbcdd16f9caaead
1
var Foo = {
2
value : function() { return this.x + this.y; }
3
};
4
5
var a = { prototype: Foo, x: 1, y: 2 };
6
var b = new Foo();
7
b.x = 2;
8
b.y = 3;
9
10
var result1 = a.value();
11
var result2 = b.value();
12
result = result1==3 && result2==5;