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

Unified Diff: test/mjsunit/regress/regress-186.js

Issue 1819123002: Remove support for legacy const, part 1 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased, deleted one more file Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/regress/regress-1213575.js ('k') | test/mjsunit/regress/regress-3138.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-186.js
diff --git a/test/mjsunit/regress/regress-186.js b/test/mjsunit/regress/regress-186.js
index e10ed8f25d4f67016fe3bd94d12e78c736eb6824..0c2dbc696d0b6e0ec05d8b042d99bb1d93f1d33d 100644
--- a/test/mjsunit/regress/regress-186.js
+++ b/test/mjsunit/regress/regress-186.js
@@ -25,8 +25,6 @@
// (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: --legacy-const
-
// Make sure that eval can introduce a local variable called __proto__.
// See http://code.google.com/p/v8/issues/detail?id=186
@@ -49,15 +47,6 @@ function testLocal() {
assertEquals(o, eval("__proto__"));
}
-function testConstLocal() {
- // Add const property called __proto__ to the extension object.
- eval("const __proto__ = o");
- // Check that the extension object's prototype did not change.
- eval("var x = 27");
- assertFalse(setterCalled, "prototype of extension object changed");
- assertEquals(o, eval("__proto__"));
-}
-
function testGlobal() {
// Assign to the global __proto__ property.
eval("__proto__ = o");
@@ -69,5 +58,4 @@ function testGlobal() {
}
runTest(testLocal);
-runTest(testConstLocal);
runTest(testGlobal);
« no previous file with comments | « test/mjsunit/regress/regress-1213575.js ('k') | test/mjsunit/regress/regress-3138.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698