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

Side by Side Diff: test/mjsunit/harmony/proxies.js

Issue 446023002: Enable ES6 iteration by default (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Moved tests to es6, fixed duplicate ExtendArrayPrototype name in unscopables.js Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after
1800 TestKeysThrow({ 1800 TestKeysThrow({
1801 get getOwnPropertyNames() { throw "myexn" } 1801 get getOwnPropertyNames() { throw "myexn" }
1802 }) 1802 })
1803 1803
1804 TestKeysThrow({ 1804 TestKeysThrow({
1805 get getOwnPropertyNames() { 1805 get getOwnPropertyNames() {
1806 return function() { throw "myexn" } 1806 return function() { throw "myexn" }
1807 }, 1807 },
1808 }) 1808 })
1809 1809
1810 TestKeysThrow([], { 1810 TestKeysThrow({
1811 get getOwnPropertyNames() { 1811 get getOwnPropertyNames() {
1812 return function() { return [1, 2] } 1812 return function() { return [1, 2] }
1813 }, 1813 },
1814 getOwnPropertyDescriptor: function(k) { throw "myexn" } 1814 getOwnPropertyDescriptor: function(k) { throw "myexn" }
1815 }) 1815 })
1816 1816
1817 1817
1818 1818
1819 // Fixing (Object.freeze, Object.seal, Object.preventExtensions, 1819 // Fixing (Object.freeze, Object.seal, Object.preventExtensions,
1820 // Object.isFrozen, Object.isSealed, Object.isExtensible) 1820 // Object.isFrozen, Object.isSealed, Object.isExtensible)
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
2295 2295
2296 function TestConstructorWithProxyPrototype2(create, handler) { 2296 function TestConstructorWithProxyPrototype2(create, handler) {
2297 function C() {}; 2297 function C() {};
2298 C.prototype = create(handler); 2298 C.prototype = create(handler);
2299 2299
2300 var o = new C; 2300 var o = new C;
2301 assertSame(C.prototype, Object.getPrototypeOf(o)); 2301 assertSame(C.prototype, Object.getPrototypeOf(o));
2302 } 2302 }
2303 2303
2304 TestConstructorWithProxyPrototype(); 2304 TestConstructorWithProxyPrototype();
OLDNEW
« no previous file with comments | « test/mjsunit/harmony/iteration-syntax.js ('k') | test/mjsunit/harmony/regress/regress-crbug-248025.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698