dachev / v8
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
v8 /
| name | age | message | |
|---|---|---|---|
| |
.DS_Store | ||
| |
.gitignore | ||
| |
AUTHORS | ||
| |
ChangeLog | ||
| |
LICENSE | ||
| |
README | ||
| |
SConstruct | ||
| |
benchmarks/ | ||
| |
include/ | ||
| |
samples/ | ||
| |
src/ | ||
| |
test/ | ||
| |
tools/ |
README
This is a patched V8 version to support __noSuchMethod__. All unit tests pass.
BUILD:
Use scons... Example: scons mode=release library=shared sample=shell
RUN:
./shell
> var User = {};
> User.find_all_by_street_and_city('Commonwealth Ave', 'Boston');
(shell):1: TypeError: Object #<an Object> has no method 'find_all_by_street_and_city'
User.find_all_by_street_and_city('Commonwealth Ave', 'Boston');
^
> User.__noSuchMethod__ = function(name, args) {print(name);for (var i in args) {print(args[i]);}};
function (name, args) {print(name);for (var i in args) {print(args[i]);}}
> User.find_all_by_street_and_city('Commonwealth Ave', 'Boston');
find_all_by_street_and_city
Commonwealth Ave
Boston
