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

Side by Side Diff: test/mjsunit/function-length-accessor.js

Issue 257423009: Convert function.length to API-style accessor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« src/accessors.cc ('K') | « src/bootstrapper.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --harmony-scoping
6
7 function foo(a, b, c, d) {
8 "use strict"
9 const x = 10;
10 // long comment to trigger lazy compilation.
11 // long comment to trigger lazy compilation.
12 // long comment to trigger lazy compilation.
13 // long comment to trigger lazy compilation.
14 // long comment to trigger lazy compilation.
15 // long comment to trigger lazy compilation.
16 // long comment to trigger lazy compilation.
17 // long comment to trigger lazy compilation.
18 // long comment to trigger lazy compilation.
19 // long comment to trigger lazy compilation.
20 // long comment to trigger lazy compilation.
21 // long comment to trigger lazy compilation.
22 // long comment to trigger lazy compilation.
23 // long comment to trigger lazy compilation.
24 // long comment to trigger lazy compilation.
25 // long comment to trigger lazy compilation.
26 // long comment to trigger lazy compilation.
27 // long comment to trigger lazy compilation.
28 // long comment to trigger lazy compilation.
29 // long comment to trigger lazy compilation.
30 // long comment to trigger lazy compilation.
31 // long comment to trigger lazy compilation.
32 x = 20; // This will trigger compile error with harmony scoping.
33 }
34
35 assertThrows("foo.length()");
OLDNEW
« src/accessors.cc ('K') | « src/bootstrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698