exceptionWhileFetchingProp.js 669 B

123456789101112131415161718
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. var p = new Proxy({x:10}, {
  6. getOwnPropertyDescriptor: function (oTarget, sKey) {
  7. throw new Error('');
  8. return { configurable: true, enumerable: true, value: 5 };
  9. }
  10. });
  11. function f() {
  12. var j = 1; /**bp:evaluate('p',1);**/
  13. }
  14. f();
  15. print('Pass');