- From: Peter Linss <notifications@github.com>
- Date: Thu, 13 May 2021 18:04:37 -0700
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 14 May 2021 01:04:49 UTC
Thanks for all the (quick!) feedback. I'm going to have to think this through some more.
One more quick question, what if the callable returned from a realm is a constructor? e.g. what happens if have:
```
// module.js
export function Foo(one) {
this.one = one;
this.log = function(thing) {
console.log(this.one, thing);
};
}
```
and I do:
```
const Foo = realm.importValue('module.js', 'Foo');
const f = new Foo(1);
f.log(2);
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/542#issuecomment-840925171
Received on Friday, 14 May 2021 01:04:49 UTC