Bug report about Object.defineProperty
Jim Laskey (Oracle)
james.laskey at oracle.com
Fri Aug 30 07:22:54 PDT 2013
Using a modified form of your snippet (used print instead of console), I was not able to reproduce.
>> cat > /tmp/tmp.js
var obj = Object.create(Object.create(null));
Object.defineProperty(obj, 'foo', {value: 'foo'});
// should be 'foo'
print(obj.foo);
>> jjs /tmp/tmp.js
foo
>> hg log -l1
changeset: 531:101606d3eb84
tag: tip
parent: 530:a18f92a0a910
parent: 520:bda0e89f88ae
user: sundar
date: Tue Aug 27 19:26:48 2013 +0530
summary: Merge
Cheers,
-- Jim
On 2013-08-30, at 10:48 AM, toshiyuki kojima <basabasafoo at gmail.com> wrote:
> Hello,
>
> Using Object.defineProperty on a object that not inherits Object.prototype,
> it cause to crash Nashron.
>
> I confirmed this bug using following revision:
>
> changeset: 101606d3eb84
>
> date: Tue Aug 27 19:26:48 2013 +0530
>
> summary: Merge
>
> and following code snippets.
> http://jsfiddle.net/gocho/5nwv2/
>
> Sorry for not fix, but report.
>
> --gocho
>
> twitter.com/gocho
More information about the nashorn-dev
mailing list