Index: test/mjsunit/regress/regress-convert-function-to-double.js |
diff --git a/test/mjsunit/regress/regress-crbug-172345.js b/test/mjsunit/regress/regress-convert-function-to-double.js |
similarity index 93% |
copy from test/mjsunit/regress/regress-crbug-172345.js |
copy to test/mjsunit/regress/regress-convert-function-to-double.js |
index 711501caa791f2974635ac4dd894568a2e3fc982..fca44f96324383a43daf393174f845d14f94bd9e 100644 |
--- a/test/mjsunit/regress/regress-crbug-172345.js |
+++ b/test/mjsunit/regress/regress-convert-function-to-double.js |
@@ -25,10 +25,12 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-function f(a,i) { |
- return a[i]; |
+function f(v) { |
+ this.func = v; |
} |
-f([1,2,3], "length"); |
-f([1,2,3], "length"); |
-f([1,2,3], 2); |
+var o1 = new f(f); |
+var d = 1.4; |
+var o2 = new f(d); |
+o2.func = 1.8; |
+assertEquals(1.4, d) |