For the V8 bindings in the R programming language, we are using using v8 version 3.14 plus an implementation of typed arrays taken from node version 0.6.21 and some custom functions. My question is how to globally expose these additional functions or objects without polluting the global namespace object.
Currently I am using the context's 'global' object to expose the implementation of console.log and the typed array functions (ArrayBuffer, Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array, DataView). However it would be more elegant if these standard functions would be in the parent scope of the global, similar to the rest of the standard JavaScript library. That way the user can freely modify the global object without affecting base functions. -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
