prop-def-id-eval-error-2.js (490B)
1 // Copyright (C) 2015 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 es6id: 12.2.5.9 5 description: > 6 Errors thrown during IdentifierReference evaluation are forwarded to the 7 runtime. 8 flags: [noStrict] 9 features: [Proxy] 10 ---*/ 11 12 var p = new Proxy({}, { 13 has: function () { 14 throw new Test262Error(); 15 } 16 }); 17 18 assert.throws(Test262Error, function() { 19 with (p) { 20 ({attr}); 21 } 22 }); 23 24 reportCompare(0, 0);