custom cross-realm brand checking

2018-10-01 Thread Richard Gibson
Responses inline. On Monday, October 1, 2018, Jordan Harband wrote: > Function.prototype.toString wouldn't suffice as a verification - you could > reconstruct it with eval, in many cases > I've specifically constructed a use that I believe cannot be reconstructed in such a way, with or without

Re: custom cross-realm brand checking

2018-10-01 Thread Jordan Harband
Function.prototype.toString wouldn't suffice as a verification - you could reconstruct it with eval, in many cases - and refactoring the implementation shouldn't force a change in the identity of a function. On Mon, Oct 1, 2018 at 2:13 PM Richard Gibson wrote: > One of the topics discussed in th

custom cross-realm brand checking

2018-10-01 Thread Richard Gibson
One of the topics discussed in the final breakouts of last week's TC39 meeting was something like "self-hosted implementation of cross-realm internal slots". I facetiously joked about using the global symbol registry (which is shared across realms), but it was pointed out that such a mechanism woul