v8/test
rossberg 580d66bcda [strong] checking of this & super in constructors
R=dslomov@chromium.org, marja@chromium.org
BUG=v8:3956
LOG=N

Enforces for constructors that
- the only use of 'super' is the super constructor call
- the only use of 'this' is a property assignment
- both of these must happen at the top-level of the body
- 'this' may only be assigned after the 'super' call
- 'return' may only be used after the last assignment to 'this'

Not yet working for arrow functions (there might be deeper bugs with those).

Review URL: https://codereview.chromium.org/1024063002

Cr-Commit-Position: refs/heads/master@{#27977}
2015-04-21 16:34:29 +00:00
..
benchmarks [turbofan] Add single --turbo flag. 2015-04-16 16:28:39 +00:00
cctest [strong] checking of this & super in constructors 2015-04-21 16:34:29 +00:00
emscripten [test] Initial import of an emscripten test suite. 2015-04-21 12:24:10 +00:00
intl Allow identifier code points from supplementary multilingual planes. 2014-10-10 07:13:46 +00:00
js-perf-test [cleanup] fix SpreadCalls perf-test names in JSTests.json 2015-04-10 18:29:25 +00:00
memory Correctly name memory stat for context snapshot size. 2015-04-10 22:36:02 +00:00
message Factor formal argument parsing into ParserBase 2015-04-21 11:09:34 +00:00
mjsunit [strong] checking of this & super in constructors 2015-04-21 16:34:29 +00:00
mozilla Revert "ES6: Number and Boolean prototype should be ordinary objects" 2015-04-13 16:21:00 +00:00
preparser Remove --harmony-scoping flag. 2015-03-13 15:15:57 +00:00
promises-aplus Enable access check tests that no longer fail with TF. 2014-08-14 13:24:57 +00:00
test262 Revert "ES6: Number and Boolean prototype should be ordinary objects" 2015-04-13 16:21:00 +00:00
test262-es6 Revert "ES6: Number and Boolean prototype should be ordinary objects" 2015-04-13 16:21:00 +00:00
unittests [turbofan] Use FastCloneShallow[Array|Object]Stub if possible. 2015-04-21 15:43:15 +00:00
webkit [es6] do not add caller/arguments to ES6 function definitions 2015-04-09 22:40:28 +00:00