2009/3/18 MJ <[email protected]>: > > There are a bunch of ECMA spec fucntions like ToNumber, ToString and > such defined in runtime.js in V8. Although when you try to use them in > script they are undefined. Has anyone seen this or know why this is?
The policy-based explanation is that they are not really part of the ECMAScript standard. They are only used to explain the algorithms that are in the spec. The technical explanation is that files like runtime.js have a different global object than other scripts. -- Erik Corry, Software Engineer Google Denmark ApS. CVR nr. 28 86 69 84 c/o Philip & Partners, 7 Vognmagergade, P.O. Box 2227, DK-1018 Copenhagen K, Denmark. --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
