If you build is successful and the sample shell runs OK, then you should be
fine. If stuff from runtime.js was somehow missing V8 would not run at all.
The reason that you cannot get access to functions from runtime.js (e.g.
ToInt32) is that they are functions used internally by V8 and lives in the
internal builtins context. V8 has an option for exposing the builtins
context, but that should only be used for testing.
$ shell --expose-natives-as builtins
> builtins.ToInt32
function ToInt32(x) {
if (_IsSmi(x)) return x;
return NumberToJSInt32(ToNumber(x));
}
> typeof builtins.ToInt32('1')
number
Regards,
Søren
On Tue, Nov 18, 2008 at 10:34 PM, <[EMAIL PROTECTED]> wrote:
>
> I've built v8 on VS2008, but can't get the features in the v8native js
> files to work.
> I created library and shell with and without snapshot feature.
> I've run the js2c script and got a DerivedSources/native.cc which
> looks like it has something in it (937 k of something).
>
> But some functions seem missing (which is how I noted); notably
> ToInt32 and co. defined in runtime.js
>
> I can't get V8 to load the js files in src directory. What am I
> missing here?
>
> Thanks,
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---