Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1086)

Issue 4236: This is a fix of issue http://b/issue?id=1381845.... (Closed)

Created:
12 years, 3 months ago by Feng Qian
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

This is a fix of issue http://b/issue?id=1381845. Check domain security on prototypes in for-in loop. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=368

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -7 lines) Patch
M src/handles.cc View 2 chunks +8 lines, -7 lines 0 comments Download
M test/cctest/test-api.cc View 1 chunk +32 lines, -0 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Feng Qian
12 years, 3 months ago (2008-09-23 21:43:34 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/4236/diff/1/2 File test/cctest/test-api.cc (right): http://codereview.chromium.org/4236/diff/1/2#newcode3193 Line 3193: Script::Compile(v8_str("(function(){var obj = {'__proto__':env1};\ I find it ...
12 years, 3 months ago (2008-09-24 06:09:20 UTC) #2
Feng Qian
12 years, 3 months ago (2008-09-24 15:30:26 UTC) #3
http://codereview.chromium.org/4236/diff/1/2
File test/cctest/test-api.cc (right):

http://codereview.chromium.org/4236/diff/1/2#newcode3193
Line 3193: Script::Compile(v8_str("(function(){var obj = {'__proto__':env1};\
On 2008/09/24 06:09:21, Mads Ager wrote:
> I find it easier to read if you do not use \ and instead use the fact that
> adjacent string literals are concatenated.
> 
> "function() {"
> "  var obj = {'__proto__':env1};"
> "  for (var p in obj)"
> ...
> 
> Also, you could use the CompileRun helper function.  We really should clean up
> test-api.  I see that we have both v8_compile and CompileRun helper functions
-
> we should only have one and use it consistently.  Feel free to put this back
> without doing that though. 
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698