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

Side by Side Diff: test/mjsunit/es6/proxies-has.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --harmony-proxies
6
7 var target = { 5 var target = {
8 "target_one": 1 6 "target_one": 1
9 }; 7 };
10 target.__proto__ = { 8 target.__proto__ = {
11 "target_two": 2 9 "target_two": 2
12 }; 10 };
13 var handler = { 11 var handler = {
14 has: function(target, name) { 12 has: function(target, name) {
15 return name == "present"; 13 return name == "present";
16 } 14 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 assertThrows("'target_one' in proxy", TypeError); 52 assertThrows("'target_one' in proxy", TypeError);
55 assertFalse("target_two" in proxy); 53 assertFalse("target_two" in proxy);
56 assertFalse("in_your_dreams" in proxy); 54 assertFalse("in_your_dreams" in proxy);
57 55
58 // Regression test for crbug.com/570120 (stray JSObject::cast). 56 // Regression test for crbug.com/570120 (stray JSObject::cast).
59 (function TestHasPropertyFastPath() { 57 (function TestHasPropertyFastPath() {
60 var proxy = new Proxy({}, {}); 58 var proxy = new Proxy({}, {});
61 var object = Object.create(proxy); 59 var object = Object.create(proxy);
62 object.hasOwnProperty(0); 60 object.hasOwnProperty(0);
63 })(); 61 })();
OLDNEW
« no previous file with comments | « test/mjsunit/es6/proxies-global-reference.js ('k') | test/mjsunit/es6/proxies-has-own-property.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698