- From: guest271314 <notifications@github.com>
- Date: Mon, 19 Feb 2018 18:14:20 +0000 (UTC)
- To: w3c/FileAPI <FileAPI@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 19 February 2018 18:14:43 UTC
What does
> `data:` does not make new records whenever you import them, so you get into a strange situation where things get shared across potentially unrelated graphs:
>
> ```
> <script type="module">
> import data from "data:application/javascript,export%20default%20{};";
> // prints 1
> setTimeout(() => console.log(data.x), 1000);
> </script>
> <script type="module">
> import data from "data:application/javascript,export%20default%20{};";
> data.x = 1;
> </script>
> ```
intend to demonstrate?
Note that `data.x` is a property of `data`, not `data` itself.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/FileAPI/issues/97#issuecomment-366769073
Received on Monday, 19 February 2018 18:14:43 UTC