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

Unified Diff: test/mjsunit/harmony/proxies-prototype-handler-stackoverflow.js

Issue 1815773002: Remove runtime flags for Proxy and Reflect (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased 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
Index: test/mjsunit/harmony/proxies-prototype-handler-stackoverflow.js
diff --git a/test/mjsunit/harmony/proxies-prototype-handler-stackoverflow.js b/test/mjsunit/harmony/proxies-prototype-handler-stackoverflow.js
deleted file mode 100644
index e88476dd505c1f8a338254ce4ab7bc0f9d2e650f..0000000000000000000000000000000000000000
--- a/test/mjsunit/harmony/proxies-prototype-handler-stackoverflow.js
+++ /dev/null
@@ -1,118 +0,0 @@
-// Copyright 2015 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Flags: --harmony-proxies --harmony-reflect --stack-size=100
-
-// Test that traps that involve walking the target object's prototype chain
-// don't overflow the stack when the original proxy is on that chain.
-
-(function TestGetPrototype() {
- var handler = {};
- var p = new Proxy({}, handler);
- handler.__proto__ = p;
- try { return p.__proto__; } catch(e) { assertInstanceof(e, RangeError); }
-})();
-
-(function TestSetPrototype() {
- var handler = {};
- var p = new Proxy({}, handler);
- handler.__proto__ = p;
- try { p.__proto__ = p; } catch(e) { assertInstanceof(e, RangeError); }
-})();
-
-(function TestHasProperty() {
- var handler = {};
- var p = new Proxy({}, handler);
- handler.__proto__ = p;
- try {
- return Reflect.has(p, "foo");
- } catch(e) { assertInstanceof(e, RangeError); }
-})();
-
-(function TestSet() {
- var handler = {};
- var p = new Proxy({}, handler);
- handler.__proto__ = p;
- try { p.foo = 1; } catch(e) { assertInstanceof(e, RangeError); }
-})();
-
-(function TestGet() {
- var handler = {};
- var p = new Proxy({}, handler);
- handler.__proto__ = p;
- try { return p.foo; } catch(e) { assertInstanceof(e, RangeError); }
-})();
-
-(function TestEnumerate() {
- var handler = {};
- var p = new Proxy({}, handler);
- handler.__proto__ = p;
- try { for (var x in p) {} } catch(e) { assertInstanceof(e, RangeError); }
-})();
-
-(function TestIsExtensible() {
- var handler = {};
- var p = new Proxy({}, handler);
- handler.__proto__ = p;
- try {
- return Reflect.isExtensible(p);
- } catch(e) { assertInstanceof(e, RangeError); }
-})();
-
-(function TestPreventExtensions() {
- var handler = {};
- var p = new Proxy({}, handler);
- handler.__proto__ = p;
- try {
- Reflect.preventExtensions(p);
- } catch(e) { assertInstanceof(e, RangeError); }
-})();
-
-(function TestGetOwnPropertyDescriptor() {
- var handler = {};
- var p = new Proxy({}, handler);
- handler.__proto__ = p;
- try {
- return Object.getOwnPropertyDescriptor(p, "foo");
- } catch(e) { assertInstanceof(e, RangeError); }
-})();
-
-(function TestDeleteProperty() {
- var handler = {};
- var p = new Proxy({}, handler);
- handler.__proto__ = p;
- try { delete p.foo; } catch(e) { assertInstanceof(e, RangeError); }
-})();
-
-(function TestDefineProperty() {
- var handler = {};
- var p = new Proxy({}, handler);
- handler.__proto__ = p;
- try {
- Object.defineProperty(p, "foo", {value: "bar"});
- } catch(e) { assertInstanceof(e, RangeError); }
-})();
-
-(function TestOwnKeys() {
- var handler = {};
- var p = new Proxy({}, handler);
- handler.__proto__ = p;
- try {
- return Reflect.ownKeys(p);
- } catch(e) { assertInstanceof(e, RangeError); }
-})();
-
-(function TestCall() {
- var handler = {};
- var p = new Proxy(function() {}, handler);
- handler.__proto__ = p;
- try { return p(); } catch(e) { assertInstanceof(e, RangeError); }
-})();
-
-(function TestConstruct() {
- var handler = {};
- var p = new Proxy(function() { this.foo = 1; }, handler);
- handler.__proto__ = p;
- try { return new p(); } catch(e) { assertInstanceof(e, RangeError); }
-})();
« no previous file with comments | « test/mjsunit/harmony/proxies-property-is-enumerable.js ('k') | test/mjsunit/harmony/proxies-prototype-target-stackoverflow.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698