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

Unified Diff: test/mjsunit/harmony/proxies-with-unscopables.js

Issue 1417063011: [runtime] support new Proxy() instead of Proxy.create and install getPrototypeOf trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removing unreachable code Created 5 years, 1 month 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/harmony/proxies-with.js ('k') | test/mjsunit/harmony/proxy/proxy-getPrototypeOf.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/proxies-with-unscopables.js
diff --git a/test/mjsunit/harmony/proxies-with-unscopables.js b/test/mjsunit/harmony/proxies-with-unscopables.js
index 8a03ef481eeb2a074d07b24c92c17a6b74291f4a..1237b2b361041cbba35d369038067d157e82c03f 100644
--- a/test/mjsunit/harmony/proxies-with-unscopables.js
+++ b/test/mjsunit/harmony/proxies-with-unscopables.js
@@ -11,7 +11,7 @@
function TestBasics() {
var log = [];
- var proxy = Proxy.create({
+ var proxy = new Proxy({}, {
getPropertyDescriptor: function(key) {
log.push(key);
if (key === 'x') {
@@ -40,7 +40,7 @@ function TestInconsistent() {
var log = [];
var calls = 0;
- var proxy = Proxy.create({
+ var proxy = new Proxy({}, {
getPropertyDescriptor: function(key) {
log.push(key);
if (key === 'x' && calls < 1) {
@@ -72,7 +72,7 @@ function TestUseProxyAsUnscopables() {
x: 2
};
var calls = 0;
- var proxy = Proxy.create({
+ var proxy = new Proxy({}, {
has: function(key) {
assertUnreachable();
},
@@ -110,7 +110,7 @@ function TestThrowInHasUnscopables() {
function CustomError() {}
var calls = 0;
- var proxy = Proxy.create({
+ var proxy = new Proxy({}, {
has: function(key) {
assertUnreachable();
},
@@ -136,7 +136,7 @@ TestThrowInHasUnscopables();
var global = this;
function TestGlobalShouldIgnoreUnscopables() {
global.x = 1;
- var proxy = Proxy.create({
+ var proxy = new Proxy({}, {
getPropertyDescriptor: function() {
assertUnreachable();
}
« no previous file with comments | « test/mjsunit/harmony/proxies-with.js ('k') | test/mjsunit/harmony/proxy/proxy-getPrototypeOf.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698