|
|
DescriptionReadableStream and WritableStream use some common string
constants. Share them to avoid duplication.
BUG=
Committed: https://crrev.com/ef448f0b40803fb6ef2d79211148d9075bd9dfa2
Cr-Commit-Position: refs/heads/master@{#436885}
Patch Set 1 #Patch Set 2 : Place stream error strings in a namespace #
Total comments: 2
Patch Set 3 : Prefix local variables with an underscore #Patch Set 4 : Rebase to fix patch errors and fix typo #
Messages
Total messages: 31 (14 generated)
ricea@chromium.org changed reviewers: + domenic@chromium.org
domenic, what do you think?
Description was changed from ========== ReadableStream and WritableStream use some common string constants. Share them to avoid duplication. BUG= ========== to ========== ReadableStream and WritableStream use some common string constants. Share them to avoid duplication. BUG= ==========
LGTM. Nice solution to the dependencies issue. You might want to consider a lowercase filename since it's not named after a class but I'm not sure what the protocol is there.
ricea@chromium.org changed reviewers: + yhirano@chromium.org
+yhirano Please let me know what you think about the lowercase vs. CamelCase filename issue.
On 2016/11/15 02:01:52, Adam Rice wrote: > +yhirano Please let me know what you think about the lowercase vs. CamelCase > filename issue. I think being consistent is good. +1 for CamelCase. By the way, the constants are shared among all v8 extra scripts, right? For example, "errInvalidSize" sounds like a very general error but its contents is specific to streams. Also, for genuine generic ones, such as errIllegalInvocation, I'm not sure if it should be placed on this directory.
On 2016/11/15 03:09:23, yhirano wrote: > By the way, the constants are shared among all v8 extra scripts, right? For > example, "errInvalidSize" sounds like a very general error but its contents is > specific to streams. Also, for genuine generic ones, such as > errIllegalInvocation, I'm not sure if it should be placed on this directory. I have namespaced the constants. PTAL.
On 2016/11/15 04:13:22, Adam Rice wrote: > On 2016/11/15 03:09:23, yhirano wrote: > > By the way, the constants are shared among all v8 extra scripts, right? For > > example, "errInvalidSize" sounds like a very general error but its contents is > > specific to streams. Also, for genuine generic ones, such as > > errIllegalInvocation, I'm not sure if it should be placed on this directory. > > I have namespaced the constants. PTAL. lgtm
ricea@chromium.org changed reviewers: + brettw@chromium.org
+brettw for v8.gni
https://codereview.chromium.org/2498983002/diff/20001/build_overrides/v8.gni File build_overrides/v8.gni (right): https://codereview.chromium.org/2498983002/diff/20001/build_overrides/v8.gni#... build_overrides/v8.gni:15: v8_extras_dependencies = Is this variable needed outside of this file? I don't see any reference to it in v8.gni. Same with v8_extras. If you want local variables that aren't exported, you can precede them with an underscore. But I don't understand why this file is separated out from the list below in the first place. Can you clarify?
https://codereview.chromium.org/2498983002/diff/20001/build_overrides/v8.gni File build_overrides/v8.gni (right): https://codereview.chromium.org/2498983002/diff/20001/build_overrides/v8.gni#... build_overrides/v8.gni:15: v8_extras_dependencies = On 2016/11/16 21:32:12, brettw (ping on IM after 24h) wrote: > Is this variable needed outside of this file? I don't see any reference to it in > v8.gni. Same with v8_extras. > > If you want local variables that aren't exported, you can precede them with an > underscore. But I don't understand why this file is separated out from the list > below in the first place. Can you clarify? Sorry for making you look. I have added the underscore prefix to those variables. Dependencies need to be executed first. Since relying on sort order would be fragile, I split out CommonStrings.js into a separate variable. I've added a comment to clarify. I plan to add CommonOperations.js in another CL.
lgtm
The CQ bit was checked by ricea@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from domenic@chromium.org, yhirano@chromium.org Link to the patchset: https://codereview.chromium.org/2498983002/#ps40001 (title: "Prefix local variables with an underscore")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...)
The CQ bit was checked by ricea@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from domenic@chromium.org, yhirano@chromium.org, brettw@chromium.org Link to the patchset: https://codereview.chromium.org/2498983002/#ps60001 (title: "Rebase to fix patch errors and fix typo")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by ricea@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 60001, "attempt_start_ts": 1481089238824830, "parent_rev": "f888941c5b004be81dc7ba4592060df764ac99c0", "commit_rev": "dce6bfaedee9644102d4ed74c261dfdbff0716d0"}
Message was sent while issue was closed.
Description was changed from ========== ReadableStream and WritableStream use some common string constants. Share them to avoid duplication. BUG= ========== to ========== ReadableStream and WritableStream use some common string constants. Share them to avoid duplication. BUG= ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== ReadableStream and WritableStream use some common string constants. Share them to avoid duplication. BUG= ========== to ========== ReadableStream and WritableStream use some common string constants. Share them to avoid duplication. BUG= Committed: https://crrev.com/ef448f0b40803fb6ef2d79211148d9075bd9dfa2 Cr-Commit-Position: refs/heads/master@{#436885} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/ef448f0b40803fb6ef2d79211148d9075bd9dfa2 Cr-Commit-Position: refs/heads/master@{#436885} |