mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 20:55:40 +00:00
jscript: Don't expose Function.prototype.arguments in non-html mode.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
parent
a4c2f6ab72
commit
898b705e83
|
@ -582,7 +582,7 @@ static HRESULT Function_gc_traverse(struct gc_ctx *gc_ctx, enum gc_traverse_op o
|
|||
|
||||
static const builtin_prop_t Function_props[] = {
|
||||
{L"apply", Function_apply, PROPF_METHOD|2},
|
||||
{L"arguments", NULL, 0, Function_get_arguments},
|
||||
{L"arguments", NULL, PROPF_HTML, Function_get_arguments},
|
||||
{L"bind", Function_bind, PROPF_METHOD|PROPF_ES5|1},
|
||||
{L"call", Function_call, PROPF_METHOD|1},
|
||||
{L"caller", NULL, PROPF_HTML, Function_get_caller},
|
||||
|
|
|
@ -287,6 +287,7 @@ ok(Object.prototype.hasOwnProperty('toString'), "Object.prototype.hasOwnProperty
|
|||
ok(Object.prototype.hasOwnProperty('isPrototypeOf'), "Object.prototype.hasOwnProperty('isPrototypeOf') is false");
|
||||
ok(Function.prototype.hasOwnProperty('call'), "Function.prototype.hasOwnProperty('call') is false");
|
||||
ok(!Function.prototype.hasOwnProperty('caller'), "Function.prototype.hasOwnProperty('caller') is true");
|
||||
ok(!Function.prototype.hasOwnProperty('arguments'), "Function.prototype.hasOwnProperty('arguments') is true");
|
||||
|
||||
Object();
|
||||
new Object();
|
||||
|
|
Loading…
Reference in a new issue