Tests will not attempt to use Object.isFrozen() unless defined
parent
665b11e116
commit
dce46bb555
|
@ -44,8 +44,13 @@ assert.ok(
|
|||
"Extend method creates a new object"
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
Object.isFrozen( Foo ),
|
||||
true,
|
||||
"Generated class should be frozen"
|
||||
);
|
||||
// only perform check if supported by the engine
|
||||
if ( Object.isFrozen )
|
||||
{
|
||||
assert.equal(
|
||||
Object.isFrozen( Foo ),
|
||||
true,
|
||||
"Generated class should be frozen"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -35,9 +35,13 @@ assert.ok(
|
|||
"Interface extend method creates a new interface object"
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
Object.isFrozen( FooType ),
|
||||
true,
|
||||
"Generated interface object should be frozen"
|
||||
);
|
||||
// only perform check if supported by the engine
|
||||
if ( Object.isFrozen )
|
||||
{
|
||||
assert.equal(
|
||||
Object.isFrozen( FooType ),
|
||||
true,
|
||||
"Generated interface object should be frozen"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue