Skip to content

Commit 7de2a2f

Browse files
committed
final touch on PR #97 to make new Registry() to throw.
1 parent 558f4e8 commit 7de2a2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ The abstract operation CreateRegistry with no arguments performs the following s
297297

298298
<h3 id="registry-constructor">The Registry Constructor</h3>
299299

300-
The Registry constructor is the %Registry% intrinsic object. When called as a constructor it creates and initializes a new Registry object. When <b>Registry</b> is called as a function rather than as a constructor, it throws an exception.
300+
The Registry constructor is the %Registry% intrinsic object. It is not intended to be called as a function or as a constructor and will always throw an exception.
301301

302302
<h3 id="properties-of-the-registry-constructor">Properties of the Registry Constructor</h3>
303303

@@ -315,7 +315,7 @@ This property has the attributes { \[[Writable]]: false, \[[Enumerable]]: false,
315315

316316
<h4 id="registry-prototype-constructor">Registry.prototype.constructor</h4>
317317

318-
Registry.prototype.constructor is not intended to be called as a function or as a constructor and will always throw an exception.
318+
The initial value of the constructor property of the %RegistryPrototype% object is the %Registry% object.
319319

320320
<emu-note>
321321
Always throws to prevent the creation of new registry objects in user-land.

0 commit comments

Comments
 (0)