Skip to content
/ v8 Public

Google's V8 virtual machine enhanced with __noSuchMethod__ implementation

License

Notifications You must be signed in to change notification settings

dachev/v8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Google's V8 virtual machine enhanced with __noSuchMethod__ implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published