Commit e6198a0f authored by dslomov's avatar dslomov Committed by Commit bot

Update tests in preparation for shipping classes.

R=arv@chromium.org
BUG=v8:3330
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#25783}
parent ed29ecd8
......@@ -24,6 +24,8 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Flags: --noharmony-classes --noharmony-object-literals
// Should throw, not crash.
assertThrows("var o = { get /*space*/ () {} }");
......@@ -26,6 +26,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --turbo-deoptimization --noharmony-scoping
// Flags: --noharmony-classes --noharmony-object-literals
function CheckStrictMode(code, exception) {
assertDoesNotThrow(code);
......
......@@ -31,7 +31,10 @@
# scopes (global scope, function scope, and nested function scope).
def StrictTest(name, source, legacy):
if legacy:
extra_flags = ["--noharmony-scoping"]
extra_flags = [
"--noharmony-scoping",
"--noharmony-classes",
"--noharmony-object-literals"]
else:
extra_flags = []
Test(name, '"use strict";\n' + source, "strict_function",
......
......@@ -37,15 +37,19 @@
############################### ES6 ###################################
# ES6 allows block-local functions.
'Sbp_A1_T1': [PASS, FAIL],
'Sbp_A2_T1': [PASS, FAIL],
'Sbp_A2_T2': [PASS, FAIL],
'Sbp_A3_T1': [PASS, FAIL],
'Sbp_A3_T2': [PASS, FAIL],
'Sbp_A4_T1': [PASS, FAIL],
'Sbp_A4_T2': [PASS, FAIL],
'Sbp_A1_T1': [PASS, FAIL_OK],
'Sbp_A2_T1': [PASS, FAIL_OK],
'Sbp_A2_T2': [PASS, FAIL_OK],
'Sbp_A3_T1': [PASS, FAIL_OK],
'Sbp_A3_T2': [PASS, FAIL_OK],
'Sbp_A4_T1': [PASS, FAIL_OK],
'Sbp_A4_T2': [PASS, FAIL_OK],
'Sbp_A5_T1': [PASS], # Test is broken (strict reference to unbound variable)
'Sbp_A5_T2': [PASS, FAIL],
'Sbp_A5_T2': [PASS, FAIL_OK],
# Passes in ES6 since {__arr} syntax is parsed as object literal.
'S12.1_A4_T2': [PASS, FAIL_OK],
'S12.6.4_A15': [PASS, FAIL_OK],
######################## NEEDS INVESTIGATION ###########################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment