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

Issue 6893057: Fix a bug in a corner case of direct eval detection. (Closed)

Created:
9 years, 8 months ago by Kevin Millikin (Chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix a bug in a corner case of direct eval detection. The corner case is calling a function named 'eval' that is looked up at runtime and found in a non-global context (but not an extension object). The bug is that we used the function itself as the receiver rather than using the global object. R=ager@chromium.org TEST=has been added to the eval mjsunit test Committed: http://code.google.com/p/v8/source/detail?r=7696

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -5 lines) Patch
M src/runtime.cc View 1 chunk +1 line, -4 lines 0 comments Download
M test/mjsunit/eval.js View 2 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
Kevin Millikin (Chromium)
9 years, 8 months ago (2011-04-27 15:51:20 UTC) #1
Mads Ager (chromium)
9 years, 8 months ago (2011-04-27 17:05:15 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698