How to use V8's built in functions
        Posted  
        
            by Victor jiang
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Victor jiang
        
        
        
        Published on 2010-03-12T03:31:05Z
        Indexed on 
            2010/03/12
            3:37 UTC
        
        
        Read the original article
        Hit count: 569
        
I'm new in both javascript and V8. According to Google's Embedder's Guide, I saw something in the context section talking about built-in utility javascript functions. And I also found some .js files(e.g. math.js) in the downloaded source code, so I tried to write a simple program to call functions in these files, but I failed.
- Does a context created by - Persistent<Context> context = Context::New()have any built-in js functions? How can I access them?
- Is there a way to first import existing js files as a library(something like src="xxx" type="text/javascript" in HTML page) and then run my own execute script? 
- Can I call google maps api through the embedded V8 library in app? How? 
© Stack Overflow or respective owner