Re: [v8-users] Cross-context object usage

2021-10-26 Thread ClearScript Developers
Thanks, Jakob. It would appear that an object's creation context indicates "which NativeContext initiated a certain action. V8 needs that information for security checks." Is that correct? An object's creation context is used for security checks? Is there no other significance to it? (And als

Re: [v8-users] Cross-context object usage

2021-10-25 Thread Jakob Kummerow
See here: https://docs.google.com/document/d/1ux2XfRtiMhIl4Cjok6YLhE6Yh5Q20u84ai61PHFMggE/edit Also, why don't contexts within the same isolate share built-ins such as > Math et al? > So that one can do delete Math.max and any other s aren't bothered by that. (And also because functions have ide

[v8-users] Cross-context object usage

2021-10-25 Thread ClearScript Developers
Greetings! Can someone confirm that a V8 object can be used safely across contexts within the same isolate? A related question: What is the significance of an object's creation context? Also, why don't contexts within the same isolate share built-ins such as Math et al? Thanks in advance! -