Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2529)

Issue 10868045: code review 10868045: go.talks: refactor Playground JavaScript API (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by adg
Modified:
10 years, 9 months ago
Reviewers:
dsymonds
CC:
dsymonds, golang-dev
Visibility:
Public.

Description

go.talks: refactor Playground JavaScript API These changes will be propagated to the go-tour, go-playground, and go core.

Patch Set 1 #

Patch Set 2 : diff -r 58596207d038 https://code.google.com/p/go.talks #

Patch Set 3 : diff -r 58596207d038 https://code.google.com/p/go.talks #

Patch Set 4 : diff -r 58596207d038 https://code.google.com/p/go.talks #

Patch Set 5 : diff -r 3278895cafd6 https://code.google.com/p/go.talks #

Total comments: 8

Patch Set 6 : diff -r 3278895cafd6 https://code.google.com/p/go.talks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -295 lines) Patch
M present/appengine.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M present/js/play.js View 1 2 3 1 chunk +82 lines, -100 lines 0 comments Download
M present/js/playground.js View 1 2 3 4 5 5 chunks +216 lines, -114 lines 0 comments Download
R present/js/socket.js View 1 2 3 1 chunk +0 lines, -75 lines 0 comments Download
M present/local.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M present/play.go View 1 2 3 4 5 1 chunk +9 lines, -4 lines 0 comments Download

Messages

Total messages: 3
adg
Hello dsymonds (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.talks
10 years, 9 months ago (2013-07-04 03:06:54 UTC) #1
dsymonds
LGTM as long as you've tested this in all those contexts. https://codereview.appspot.com/10868045/diff/12001/present/js/playground.js File present/js/playground.js (right): ...
10 years, 9 months ago (2013-07-04 03:20:42 UTC) #2
adg
10 years, 9 months ago (2013-07-04 03:28:06 UTC) #3
*** Submitted as
https://code.google.com/p/go/source/detail?r=b3cad5151b4a&repo=talks ***

go.talks: refactor Playground JavaScript API

These changes will be propagated to the go-tour, go-playground, and go core.

R=dsymonds
CC=golang-dev
https://codereview.appspot.com/10868045

https://codereview.appspot.com/10868045/diff/12001/present/js/playground.js
File present/js/playground.js (right):

https://codereview.appspot.com/10868045/diff/12001/present/js/playground.js#n...
present/js/playground.js:28: Body: 'string', // content of write or end status
message
On 2013/07/04 03:20:42, dsymonds wrote:
> delete trailing comma

Done.

https://codereview.appspot.com/10868045/diff/12001/present/js/playground.js#n...
present/js/playground.js:35: // Body string ("killed", for example).
On 2013/07/04 03:20:42, dsymonds wrote:
> mention if the 'end' kind with a body signals a failure.

Done.

https://codereview.appspot.com/10868045/diff/12001/present/play.go
File present/play.go (right):

https://codereview.appspot.com/10868045/diff/12001/present/play.go#newcode20
present/play.go:20: func playScript(root string, transport string) {
On 2013/07/04 03:20:42, dsymonds wrote:
> (root, transport string)
> 
> extend the func comment to say what some valid transports are.

Done.

https://codereview.appspot.com/10868045/diff/12001/present/play.go#newcode30
present/play.go:30: fmt.Fprintf(&buf, "\ninitPlayground(new %v());\n",
transport)
On 2013/07/04 03:20:42, dsymonds wrote:
> paranoid me says you should JS-escape transport here, because one day it might
> come from user input.

It really won't. Ever. I promise.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b