mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Minor changes.
This commit is contained in:
parent
416d53e337
commit
8618e4b55b
@ -37,19 +37,37 @@ var a = '';
|
||||
|
||||
|
||||
status = 'Section A of test';
|
||||
function g()
|
||||
function f()
|
||||
{
|
||||
delete arguments.length;
|
||||
return arguments;
|
||||
}
|
||||
a = g();
|
||||
|
||||
a = f();
|
||||
actual = a instanceof Object;
|
||||
expect = true;
|
||||
addThis();
|
||||
|
||||
actual = a instanceof Array;
|
||||
expect = false;
|
||||
addThis();
|
||||
|
||||
actual = a.length;
|
||||
expect = undefined;
|
||||
addThis();
|
||||
|
||||
|
||||
|
||||
status = 'Section B of test';
|
||||
a = g(1,2,3);
|
||||
a = f(1,2,3);
|
||||
actual = a instanceof Object;
|
||||
expect = true;
|
||||
addThis();
|
||||
|
||||
actual = a instanceof Array;
|
||||
expect = false;
|
||||
addThis();
|
||||
|
||||
actual = a.length;
|
||||
expect = undefined;
|
||||
addThis();
|
||||
@ -67,6 +85,7 @@ expect = 3;
|
||||
addThis();
|
||||
|
||||
|
||||
|
||||
status = 'Section C of test';
|
||||
/*
|
||||
* Note that only callee and length can be overridden, so deleting an indexed
|
||||
|
Loading…
Reference in New Issue
Block a user