/
339.txt
70 lines (51 loc) · 3.3 KB
/
339.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
* 仕様書
[REFS[
- [14] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2016-05-03 13:56:46 +09:00]]) <https://html.spec.whatwg.org/#realms-settings-objects-global-objects>
-- [6] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2016-01-21 11:56:00 +09:00]] 版) <https://html.spec.whatwg.org/#environment-settings-object's-realm>
-- [12] [CITE@en-GB-x-hixie[HTML Standard]] ([TIME[2016-03-27 03:13:07 +09:00]] 版) <https://html.spec.whatwg.org/#concept-global-object-realm>
]REFS]
* 状態
[11]
[FIG(list members)[
: [F(ss)[GlobalObject]] :
[[大域オブジェクト]]です。
: [F(ss)[HostDefined]] :
[[Web]] では、[F[設定群オブジェクト]]です。
]FIG]
* [F[Realm]]
[13] [DFN[[RUBYB[大域オブジェクトの [F[Realm]]]@en[the global object's [F[Realm]]]]]]
[SRC[>>12]] は、その[[大域オブジェクト]]に対応する [[Realm]] です。
両者には1:1の対応関係があります。当該 [[Realm]] の初期化時に[[大域オブジェクト]]が作成されていて、
以後変化しません。
[7] [[環境設定群オブジェクト]]の [DFN[[F[Realm]]]] は、
[[環境設定群オブジェクト]]の[F[realm実行文脈]]の[F[Realm]] です [SRC[>>6]]。
* 関連
[10] [[Web]] においては、 [[Realm]]、[[大域オブジェクト]]、[[環境設定群オブジェクト]]に
1:1:1 対応関係が常に成立します。
* 歴史
[1] [CITE@en[Bug 26603 – Consider merging the concept of incumbent global with the current realm]]
( ([TIME[2014-08-19 08:44:57 +09:00]] 版))
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=26603>
[2] [CITE@en[Bug 24652 – Deal with associated global / Realm]]
([TIME[2015-03-31 11:23:51 +09:00]] 版)
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=24652>
[35] [CITE@en[Bug 3138 – Realm initialisation for Web browsers]]
( ([TIME[2014-09-13 00:50:54 +09:00]] 版))
<https://bugs.ecmascript.org/show_bug.cgi?id=3138>
[3] [CITE@en[Fix refs to some terms from the ES spec · whatwg/html@40295ff]] ([TIME[2015-12-21 11:37:11 +09:00]] 版) <https://github.com/whatwg/html/commit/40295ff11d8f2629a8eeb4b31d64ae0679ad741f>
[4] [CITE@en[26603 – Consider merging the concept of incumbent global with the current realm]]
([TIME[2015-12-22 23:39:43 +09:00]] 版)
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=26603>
[5] [CITE@en[Add <script type="module"> and module resolution/fetching/evaluation · whatwg/html@cd1a9fb]] ([TIME[2016-01-21 23:26:55 +09:00]] 版) <https://github.com/whatwg/html/commit/cd1a9fb1e83f7d0bc30be8b34ecdaf444a0b19a4>
[8] [CITE@en[24318 – Define the Realm of objects]]
([TIME[2016-03-15 11:58:01 +09:00]] 版)
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=24318>
[9] [CITE@en[Clarify settings object, realm, and global relationships · whatwg/html@0866f1b]]
([TIME[2016-03-27 23:11:13 +09:00]] 版)
<https://github.com/whatwg/html/commit/0866f1b3f4b4ea5a99a30909e9bbe557dea0b460>
[15] [CITE@en[Merge pull request #113 from domenic/modernize-invoke]]
( ([[bzbarsky]]著, [TIME[2016-05-21 05:55:00 +09:00]]))
<https://github.com/heycam/webidl/commit/09c011d8de1077fe5991ceded97838650e376f6c>
[16] [CITE@en[Formalize '''[''''''['''Realm''']'''''']''' internal slot of ordinary objects · Issue #573 · tc39/ecma262]]
( ([TIME[2016-06-07 10:20:03 +09:00]]))
<https://github.com/tc39/ecma262/issues/573>