OLD | NEW |
---|---|
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
59 [1, Number.prototype], | 59 [1, Number.prototype], |
60 ["foo", String.prototype], | 60 ["foo", String.prototype], |
61 [true, Boolean.prototype], | 61 [true, Boolean.prototype], |
62 [object, object], | 62 [object, object], |
63 [fun, fun], | 63 [fun, fun], |
64 [someException, someException], | 64 [someException, someException], |
65 [someDate, someDate] | 65 [someDate, someDate] |
66 ]; | 66 ]; |
67 | 67 |
68 function runTest(fun) { | 68 function runTest(fun) { |
69 print("running"); | |
Michael Starzinger
2012/05/30 13:08:55
I think we should just remove all of this debuggin
rossberg
2012/05/31 13:31:28
Done.
| |
70 var outer_count = 0; | |
69 for (var i in objects) { | 71 for (var i in objects) { |
72 print('outer_count: ' + outer_count); | |
73 outer_count++; | |
74 | |
70 var obj = objects[i][0]; | 75 var obj = objects[i][0]; |
71 var chain = objects[i][1]; | 76 var chain = objects[i][1]; |
72 var specialObjects = getSpecialObjects(); | 77 var specialObjects = getSpecialObjects(); |
78 var count = 0; | |
73 for (var j in specialObjects) { | 79 for (var j in specialObjects) { |
80 print('count: ' + count); | |
81 count++; | |
74 var special = specialObjects[j]; | 82 var special = specialObjects[j]; |
75 chain.__proto__ = special; | 83 chain.__proto__ = special; |
76 for (var k in builtInPropertyNames) { | 84 for (var k in builtInPropertyNames) { |
77 var propertyName = builtInPropertyNames[k]; | 85 var propertyName = builtInPropertyNames[k]; |
86 print(propertyName); | |
78 fun(obj, propertyName); | 87 fun(obj, propertyName); |
79 } | 88 } |
80 } | 89 } |
81 } | 90 } |
82 } | 91 } |
83 | 92 |
84 runTest(function (obj, name) { return obj[name]; }); | 93 runTest(function (obj, name) { return obj[name]; }); |
85 runTest(function (obj, name) { return obj[name] = { }; }); | 94 runTest(function (obj, name) { return obj[name] = { }; }); |
OLD | NEW |