regress-380933.js (715B)
1 // |reftest| skip-if(!this.uneval) 2 3 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ 4 /* This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 7 8 var BUGNUMBER = 380933; 9 var summary = 'Do not assert with uneval object with setter with modified proto'; 10 11 printBugNumber(BUGNUMBER); 12 printStatus (summary); 13 14 var f = (function(){}); 15 var y = 16 Object.defineProperty({}, "p", 17 { 18 get: f, 19 enumerable: true, 20 configurable: true 21 }); 22 f.__proto__ = []; 23 uneval(y); 24 25 if (typeof reportCompare === "function") 26 reportCompare(true, true); 27 28 print("Tests complete");