Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: Relocate the definition of StringIndexOf #2069

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

jmdyck
Copy link
Collaborator

@jmdyck jmdyck commented Jun 29, 2020

PR #2009 recently introduced StringIndexOf, locating its definition in a subclause of 10 ECMAScript Language: Source Code. This placement doesn't make much sense, as StringIndexOf isn't particularly related to source code.

There are various plausible places where it could go:

This PR picks the first option. (I think there's a nice modularity to defining a String operation close to the definition of the String type.)

@ljharb ljharb requested review from syg, bakkot and a team June 29, 2020 20:35
@ljharb ljharb self-assigned this Jun 29, 2020
PR tc39#2009 recently introduced StringIndexOf, locating its definition in a
subclause of "10 ECMAScript Language: Source Code". This placement doesn't
make much sense, as StringIndexOf isn't particularly related to source code.

This commit relocates it to 6.1.4 The String Type.
@ljharb ljharb merged commit 34d2050 into tc39:master Jul 1, 2020
@jmdyck jmdyck deleted the relocate_StringIndexOf branch August 1, 2020 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants