JSpec & IE8. Magic words

1 view
Skip to first unread message

P.A.

unread,
Mar 3, 2010, 11:53:22 AM3/3/10
to jspec
Hi.

I'm trying to use JSpec with IE8. All works fine before I try to use
the 'parent' variable.

Here's the spec.

describe 'Test'
it 'should be ok'
ok = 'ok!'
ok.should.eql('ok!')
end
end

#=> OK!

describe 'Test'
it 'should be ok'
parent = 'ok!'
parent.should.eql('ok!')
end
end

#=> OK! in FF and others, but IE8 returns an error: 'Error: it doesn't
support'.

If I try to use before hooks the situation becomes more interesting.

describe 'Test'
before
parent = 'ok!'
end

it 'should be ok'
parent.should.eql('ok!')
end
end

#=> IE8 returns an error: 'string: 1313 (look at the number!)
exception was thrown but wasn't catched'.

What is the magic word 'parent' and why IE8 behave so strange when I'm
using this word? Are there other words of such kind?

Thanks.

Cast:

Debian GNU/Linux 5.0.4;
Windows XP SP 3 (on VirtualBox);
Firefox 3.6;
IE8;
JSpec 3.3.2.

vision media [ Tj Holowaychuk ]

unread,
Mar 3, 2010, 12:02:52 PM3/3/10
to js...@googlegroups.com
hmm very weird! so it works when you dont name the var "parent"? 
very strange... I do not use "parent" internally for JSpec at all so
it may just be a IE8 reserved word


--
JSpec thanks you for your interest and support! To post simply reply
to this email.

documentation: http://jspec.info
unsubscribe: jspec+un...@googlegroups.com
group: http://groups.google.com/group/jspec



--
Tj Holowaychuk
Vision Media
President & Creative Lead
Reply all
Reply to author
Forward
0 new messages