Skip to content

Commit d3943e1

Browse files
Unescape includes() method
"includes" was added to the WebIDL grammar to avoid needing escaping: https://heycam.github.io/webidl/#prod-OperationName Fixes #294
1 parent 2bc2e3c commit d3943e1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

index.bs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4214,14 +4214,10 @@ interface IDBKeyRange {
42144214
optional boolean lowerOpen = false,
42154215
optional boolean upperOpen = false);
42164216

4217-
boolean _includes(any key);
4217+
boolean includes(any key);
42184218
};
42194219
</xmp>
42204220

4221-
<aside class=note>
4222-
Note: When mapping the `_includes` identifier from [[WEBIDL]] to ECMAScript, the leading U+005F LOW LINE ("_") character is removed. A leading "_" is used to escape the identifier from looking like a reserved word (in this case, the `includes` keyword).
4223-
</aside>
4224-
42254221
<dl class="domintro note">
42264222
: |range| . {{IDBKeyRange/lower}}
42274223
:: Returns the range's [=lower bound=], or `undefined` if none.
@@ -4361,7 +4357,7 @@ The <dfn method for=IDBKeyRange>bound(|lower|, |upper|, |lowerOpen|,
43614357

43624358
<div class=algorithm>
43634359

4364-
The <dfn method for=IDBKeyRange lt="_includes(key)|includes(key)">includes(|key|)</dfn> method, when
4360+
The <dfn method for=IDBKeyRange>includes(|key|)</dfn> method, when
43654361
invoked, must run these steps:
43664362

43674363
1. Let |k| be the result of running [=convert a
@@ -6894,6 +6890,7 @@ For the revision history of the second edition, see [that document's Revision Hi
68946890
* Added {{IDBTransaction/commit()}} method. ([Issue #234](https://github.com/w3c/IndexedDB/issues/234))
68956891
* Added {{IDBCursor/request}} attribute. ([Issue #255](https://github.com/w3c/IndexedDB/issues/255))
68966892
* Removed handling for nonstandard `lastModifiedDate` property of {{File}} objects. ([Issue #215](https://github.com/w3c/IndexedDB/issues/215))
6893+
* Remove escaping {{IDBKeyRange/includes()}} method. ([Issue #294](https://github.com/w3c/IndexedDB/issues/294))
68976894

68986895
<!-- ============================================================ -->
68996896
# Acknowledgements # {#acknowledgements}

0 commit comments

Comments
 (0)