summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug596351-1.js
blob: f4d764a6d0095271b75ff676e0ecdc5d81acdb3d (plain)
1
2
3
4
5
// |jit-test| error: TypeError
"use strict"
var g = newGlobal();
g.eval("foo = {}; Object.defineProperty(foo, 'a', {value: 2, writable: false});");
g.foo.a = 3;