Fix messages tests.

Change tests so that message location is stable under --debug-code.

R=yangguo@chromium.org
BUG=v8:3744
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#25732}
This commit is contained in:
dslomov 2014-12-10 00:54:36 -08:00 committed by Commit bot
parent 19418d76df
commit 6751f0439f
5 changed files with 4 additions and 9 deletions

View File

@ -30,9 +30,4 @@
# All tests in the bug directory are expected to fail.
'bugs/*': [FAIL],
}], # ALWAYS
['no_snap == True', {
# BUG(3744)
'super-constructor': [PASS,FAIL],
'super-constructor-extra-statement': [PASS,FAIL],
}],
]

View File

@ -12,4 +12,4 @@ class C {
}
}
new C();
var c = new C();

View File

@ -5,4 +5,4 @@
var x;
TypeError: A 'super' constructor call may only appear as the first statement of a function, and its arguments may not access 'this'. Other forms are not yet supported.
at *%(basename)s:15:1
at *%(basename)s:15:9

View File

@ -11,4 +11,4 @@ class C {
}
}
new C();
var c = new C();

View File

@ -5,4 +5,4 @@
super(this.x);
TypeError: A 'super' constructor call may only appear as the first statement of a function, and its arguments may not access 'this'. Other forms are not yet supported.
at *%(basename)s:14:1
at *%(basename)s:14:9