inline_get_bailout_helper.js 590 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. function Bar() {
  6. this.foo = 5;
  7. }
  8. Object.defineProperty(Bar.prototype, "data", {
  9. get: function () {
  10. return this.foo;
  11. },
  12. set: function (v) {
  13. this.foo = v;
  14. },
  15. configurable: true
  16. });