Commit 37e2e88d authored by Hitoshi Yoshida's avatar Hitoshi Yoshida Committed by Commit Bot

idl: Remove comment about _ in idl identifier

The way to handle '_' in identifier is described Web IDL spec.
We don't need a confusing comment as if it comes from our IDL compiler implementation.
https://heycam.github.io/webidl/#idl-names


Bug: 820353
Change-Id: Iba6c851daa6ae0dc6d690b220a5c757d507e4dc7
Reviewed-on: https://chromium-review.googlesource.com/1092217Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarKenichi Ishibashi <bashi@chromium.org>
Commit-Queue: Hitoshi Yoshida <peria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565588}
parent c07e9f46
...@@ -41,7 +41,5 @@ ...@@ -41,7 +41,5 @@
optional boolean lowerOpen = false, optional boolean lowerOpen = false,
optional boolean upperOpen = false); optional boolean upperOpen = false);
// '_' prefix is needed because "includes" is a keyword of Web IDL and our
// parser cannot handle a keyword as an identifier. (https://crbug.com/820353)
[CallWith=ScriptState, RaisesException] boolean _includes(any key); [CallWith=ScriptState, RaisesException] boolean _includes(any key);
}; };
...@@ -685,7 +685,7 @@ Foo includes Bar; ...@@ -685,7 +685,7 @@ Foo includes Bar;
* PrimitiveType(void) * PrimitiveType(void)
*/ */
interface IFaceWithKeyword { interface IFaceWithKeyword {
// '_' prefix is needed because "includes" is a keyword of Web IDL and our // '_' prefix needs to be removed in tokenization.
// parser cannot handle a keyword as an identifier. (https://crbug.com/820353) // https://heycam.github.io/webidl/#idl-names
void _includes(DOMString val); void _includes(DOMString val);
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment