| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 InspectorTest.log("Check that while Runtime.getProperties call on proxy object n
o user defined trap will be executed."); | 5 let {session, contextGroup, Protocol} = InspectorTest.start("Check that while Ru
ntime.getProperties call on proxy object no user defined trap will be executed."
); |
| 6 | 6 |
| 7 InspectorTest.addScript(` | 7 contextGroup.addScript(` |
| 8 var self = this; | 8 var self = this; |
| 9 function testFunction() | 9 function testFunction() |
| 10 { | 10 { |
| 11 self.counter = 0; | 11 self.counter = 0; |
| 12 var handler = { | 12 var handler = { |
| 13 get: function(target, name){ | 13 get: function(target, name){ |
| 14 self.counter++; | 14 self.counter++; |
| 15 return Reflect.get.apply(this, arguments); | 15 return Reflect.get.apply(this, arguments); |
| 16 }, | 16 }, |
| 17 set: function(target, name){ | 17 set: function(target, name){ |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 function checkCounter(result) | 92 function checkCounter(result) |
| 93 { | 93 { |
| 94 Protocol.Runtime.evaluate({ expression: "self.counter" }).then(dumpCounter); | 94 Protocol.Runtime.evaluate({ expression: "self.counter" }).then(dumpCounter); |
| 95 } | 95 } |
| 96 | 96 |
| 97 function dumpCounter(result) | 97 function dumpCounter(result) |
| 98 { | 98 { |
| 99 InspectorTest.logMessage(result); | 99 InspectorTest.logMessage(result); |
| 100 InspectorTest.completeTest(); | 100 InspectorTest.completeTest(); |
| 101 } | 101 } |
| OLD | NEW |