Sign in
webkit
/
WebKit
/
d4f65fcc3c5c5e5acf4da0072f42bc48017306dc
/
.
/
LayoutTests
/
js
/
script-tests
/
dfg-inline-constructor-that-uses-arguments.js
blob: 8ca9f25cd29b8afc6dcf8b03ac1c3015ccc5e713 [
file
] [
log
] [
blame
]
description
(
"Tests that we can inline a constructor that uses arguments without failing DFG validation."
);
function
Foo
()
{
this
.
x
=
arguments
[
0
];
}
function
bar
()
{
return
new
Foo
(
42
);
}
for
(
var
i
=
0
;
i
<
200
;
++
i
)
shouldBe
(
"bar().x"
,
"42"
);