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

Issue 6516003: Strict mode delete of unqualified identifier. (Closed)

Created:
9 years, 10 months ago by Martin Maly
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Strict mode delete of unqualified identifier. SyntaxError is reported in strict mode when deleting an unqualified identifier. (11.4.1 of Ecma-262 5th Edition) BUG= TEST=test/mjsunit/strict-mode.js

Patch Set 1 #

Total comments: 2

Patch Set 2 : CR Feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -19 lines) Patch
M src/messages.js View 1 chunk +1 line, -0 lines 0 comments Download
M src/parser.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M test/es5conform/es5conform.status View 1 chunk +6 lines, -3 lines 0 comments Download
M test/mjsunit/strict-mode.js View 1 4 chunks +48 lines, -16 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Martin Maly
Delete of an unqualified identifier is a syntax error.
9 years, 10 months ago (2011-02-13 19:36:25 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/6516003/diff/1/test/mjsunit/strict-mode.js File test/mjsunit/strict-mode.js (right): http://codereview.chromium.org/6516003/diff/1/test/mjsunit/strict-mode.js#newcode270 test/mjsunit/strict-mode.js:270: CheckStrictMode("function function_name() { delete function_name; }", SyntaxError); Split ...
9 years, 10 months ago (2011-02-14 09:00:12 UTC) #2
Martin Maly
9 years, 10 months ago (2011-02-14 18:32:12 UTC) #3
Fixed up the line lengths in strict-mode.js
Thank you!
Martin

http://codereview.chromium.org/6516003/diff/1/test/mjsunit/strict-mode.js
File test/mjsunit/strict-mode.js (right):

http://codereview.chromium.org/6516003/diff/1/test/mjsunit/strict-mode.js#new...
test/mjsunit/strict-mode.js:270: CheckStrictMode("function function_name() {
delete function_name; }", SyntaxError);
On 2011/02/14 09:00:12, Mads Ager wrote:
> Split these lines to keep within 80 char?

Done.

Powered by Google App Engine
This is Rietveld 408576698