test/script/basic/JDK-8026137.js

changeset 963
e2497b11a021
parent 962
ac62e33a99b0
equal deleted inserted replaced
962:ac62e33a99b0 963:e2497b11a021
28 * @test 28 * @test
29 * @run 29 * @run
30 */ 30 */
31 31
32 try { 32 try {
33 (function f() { Object.defineProperty({},"x",{get: function(){return {valueOf:function(){throw 0}}}}).x - Object.defineProperty({},"x",{get: function(){throw 1}}).x })() 33 (function f() {
34 Object.defineProperty({},"x",{get: function(){return {valueOf:function(){throw 0}}}}).x -
35 Object.defineProperty({},"x",{get: function(){throw 1}}).x })()
34 } 36 }
35 catch (e) { 37 catch (e) {
36 print(e); 38 print(e);
37 } 39 }
38 40

mercurial